forked from jasder/antlr
[Python2] return result instead of None in visitor
This commit is contained in:
parent
dfba8c68db
commit
6326725270
|
@ -40,7 +40,7 @@ class ParseTreeVisitor(object):
|
|||
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)
|
||||
|
|
Loading…
Reference in New Issue