Lines Matching refs:results
27 def transform(self, node, results): argument
28 name = results["name"]
30 return self.transform_xrange(node, results)
32 return self.transform_range(node, results)
36 def transform_xrange(self, node, results): argument
37 name = results["name"]
42 def transform_range(self, node, results): argument
45 range_call = Call(Name("range"), [results["args"].clone()])
50 for n in results["rest"]:
66 results = {}
68 self.p1.match(node.parent.parent, results) and
69 results["node"] is node):
71 return results["func"].value in consuming_calls
73 return self.p2.match(node.parent, results) and results["node"] is node