Skip to content

Commit

Permalink
[Python2] return result instead of None in visitor
Browse files Browse the repository at this point in the history
  • Loading branch information
jkmar committed Jan 1, 2018
1 parent dfba8c6 commit 6326725
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runtime/Python2/src/antlr4/tree/Tree.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def visitChildren(self, node):
n = node.getChildCount()
for i in range(n):
if not self.shouldVisitNextChild(node, result):
return
return result

c = node.getChild(i)
childResult = c.accept(self)
Expand Down

0 comments on commit 6326725

Please sign in to comment.