Skip to content

Commit

Permalink
check name in parsermetadata
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewNolte committed May 24, 2023
1 parent 2faca1f commit 4f6de36
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion source/parsing/ParserMetadata.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,9 @@ class MetadataVisitor : public SyntaxVisitor<MetadataVisitor> {
}

void handle(const InterfacePortHeaderSyntax& syntax) {
meta.interfacePorts.push_back(&syntax);
std::string_view name = syntax.nameOrKeyword.valueText();
if (name != "" && name != "interface")
meta.interfacePorts.push_back(&syntax);
visitDefault(syntax);
}

Expand Down

0 comments on commit 4f6de36

Please sign in to comment.