@@ -304,8 +304,8 @@ def visitFunctionCall(self, ctx):
304
304
305
305
elif ctxArgs .nameValueList ():
306
306
for nameValue in ctxArgs .nameValueList ().nameValue ():
307
- args .push (self .visit (nameValue .expression ()))
308
- names .push (nameValue .identifier ().getText ())
307
+ args .append (self .visit (nameValue .expression ()))
308
+ names .append (nameValue .identifier ().getText ())
309
309
310
310
return Node (ctx = ctx ,
311
311
type = 'FunctionCall' ,
@@ -548,8 +548,8 @@ def visitExpression(self, ctx):
548
548
args = [self .visit (a ) for a in ctxArgs .expressionList ().expression ()]
549
549
elif ctxArgs .nameValueList ():
550
550
for nameValue in ctxArgs .nameValueList ().nameValue ():
551
- args .push (self .visit (nameValue .expression ()))
552
- names .push (nameValue .identifier ().getText ())
551
+ args .append (self .visit (nameValue .expression ()))
552
+ names .append (nameValue .identifier ().getText ())
553
553
554
554
return Node (ctx = ctx ,
555
555
type = 'FunctionCall' ,
@@ -623,7 +623,7 @@ def visitForStatement(self, ctx):
623
623
type = 'ForStatement' ,
624
624
initExpression = self .visit (ctx .simpleStatement ()),
625
625
conditionExpression = conditionExpression ,
626
- loopExpression = Node (
626
+ loopExpression = Node (ctx = ctx ,
627
627
type = 'ExpressionStatement' ,
628
628
expression = self .visit (ctx .expression ())),
629
629
body = self .visit (ctx .statement ())
0 commit comments