Skip to content

Commit

Permalink
fix(c): fix handling of structOrUnionSpecifier nodeName #24
Browse files Browse the repository at this point in the history
Fixes a bug where the nodeName for structOrUnionSpecifier was not being properly handled. The nodeName is now correctly assigned to the structOrUnionSpecifier.
  • Loading branch information
phodal committed Jan 31, 2024
1 parent 3d33371 commit eb3ee99
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@ open class CFullIdentListener(fileName: String) : CAstBaseListener() {
structOrUnionSpecifier?.let {
var nodeName = maybeNodeName ?: structOrUnionSpecifier.Identifier()?.text
if (nodeName.isNullOrEmpty()) {
nodeName = structOrUnionSpecifier?.structOrUnion()?.text ?: ""
nodeName = structOrUnionSpecifier.structOrUnion()?.text ?: ""
}

handleStructOrUnion(structOrUnionSpecifier, nodeName ?: "")
handleStructOrUnion(structOrUnionSpecifier, nodeName)
}
}

Expand Down

0 comments on commit eb3ee99

Please sign in to comment.