[Python2] return result instead of None in visitor

This commit is contained in:
jkmar 2018-01-01 20:28:43 +01:00
parent dfba8c68db
commit 6326725270
1 changed files with 1 additions and 1 deletions

View File

@ -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)