@@ -304,8 +304,8 @@ def visitFunctionCall(self, ctx):
304304
305305 elif ctxArgs .nameValueList ():
306306 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 ())
309309
310310 return Node (ctx = ctx ,
311311 type = 'FunctionCall' ,
@@ -548,8 +548,8 @@ def visitExpression(self, ctx):
548548 args = [self .visit (a ) for a in ctxArgs .expressionList ().expression ()]
549549 elif ctxArgs .nameValueList ():
550550 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 ())
553553
554554 return Node (ctx = ctx ,
555555 type = 'FunctionCall' ,
@@ -623,7 +623,7 @@ def visitForStatement(self, ctx):
623623 type = 'ForStatement' ,
624624 initExpression = self .visit (ctx .simpleStatement ()),
625625 conditionExpression = conditionExpression ,
626- loopExpression = Node (
626+ loopExpression = Node (ctx = ctx ,
627627 type = 'ExpressionStatement' ,
628628 expression = self .visit (ctx .expression ())),
629629 body = self .visit (ctx .statement ())
0 commit comments