Skip to content
Snippets Groups Projects
Commit fac12fe2 authored by Henning Glawe's avatar Henning Glawe
Browse files

ignore empty statements

parent d3a965d4
No related branches found
No related tags found
No related merge requests found
......@@ -214,6 +214,8 @@ class syntax_node(object):
self.items.append(item)
def indented_dump(self, indent):
if len(self.items) < 1:
return ''
result = indent + self.__class__.__name__ + ":\n"
for item in self.items:
if isinstance(item, syntax_node):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment