src/eric7/Plugins/CheckerPlugins/CodeStyleChecker/Simplify/SimplifyChecker.py

branch
eric7
changeset 9278
36448ca469c2
parent 9277
471c5a263d53
child 9653
e67609152c5e
equal deleted inserted replaced
9277:471c5a263d53 9278:36448ca469c2
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 """

eric ide

mercurial