Lines Matching refs:node
36 # which node type to accept when there's not a pattern.
77 def match(self, node):
78 """Returns match for a given parse tree node.
86 results = {"node": node}
87 return self.pattern.match(node, results) and results
89 def transform(self, node, results):
90 """Returns the transformation for a given parse tree node.
93 node: the root of the parse tree that matched the fixer.
97 None, or a node that is a modified copy of the
98 argument node. The node argument may also be modified in-place to
122 def cannot_convert(self, node, reason=None):
126 First argument is the top-level node for the code in question.
129 lineno = node.get_lineno()
130 for_output = node.clone()
137 def warning(self, node, reason):
141 First argument is the top-level node for the code in question.
144 lineno = node.get_lineno()
151 tree - the root node of the tree to be processed.
163 tree - the root node of the tree to be processed.
179 def should_skip(self, node):
185 self._should_skip = does_tree_import(pkg, name, node)