Commit 811c7227 authored by Igor Dejanovic's avatar Igor Dejanovic

Fixed bug in visit method

parent d0deda8d
......@@ -763,7 +763,7 @@ class ParseTreeNode(object):
child = node.visit(visitor)
# If visit returns None suppress that child node
if child is not None:
children.append(child)
children.append_result(node.rule_name, child)
visit_name = "visit_%s" % self.rule_name
if hasattr(visitor, visit_name):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment