Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Nov 27, 2023. It is now read-only.

Commit f2fe221

Browse files
committed
fix missing ident
1 parent 5b0977c commit f2fe221

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

‎solidity_parser/parser.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -744,9 +744,11 @@ def visitVariableDeclarationList(self, ctx: SolidityParser.VariableDeclarationLi
744744
if decl == None:
745745
return None
746746

747+
ident = decl.identifier()
748+
name = ident and ident.getText() or '_'
747749
result.append(self._createNode(ctx=ctx,
748750
type='VariableDeclaration',
749-
name=decl.identifier().getText(),
751+
name=name,
750752
typeName=self.visit(decl.typeName()),
751753
isStateVar=False,
752754
isIndexed=False,

0 commit comments

Comments
 (0)