177 # Add parent information |
177 # Add parent information |
178 self.__addMeta(self.__tree) |
178 self.__addMeta(self.__tree) |
179 |
179 |
180 visitor = SimplifyNodeVisitor(self.__error) |
180 visitor = SimplifyNodeVisitor(self.__error) |
181 visitor.visit(self.__tree) |
181 visitor.visit(self.__tree) |
182 |
182 |
183 def __addMeta(self, root, level=0): |
183 def __addMeta(self, root, level=0): |
184 """ |
184 """ |
185 Private method to amend the nodes of the given AST tree with backward and |
185 Private method to amend the nodes of the given AST tree with backward and |
186 forward references. |
186 forward references. |
187 |
187 |
188 @param root reference to the root node of the tree |
188 @param root reference to the root node of the tree |
189 @type ast.AST |
189 @type ast.AST |
190 @param level nesting level (defaults to 0) |
190 @param level nesting level (defaults to 0) |
191 @type int (optional) |
191 @type int (optional) |
192 """ |
192 """ |