Lines Matching refs:gen
57 gen = Interactive(source, filename)
59 gen = Module(source, filename)
61 gen = Expression(source, filename)
65 gen.compile()
66 return gen.code
95 gen = ExpressionCodeGenerator(tree)
96 self.code = gen.getCode()
104 gen = InteractiveCodeGenerator(tree)
105 self.code = gen.getCode()
113 gen = ModuleCodeGenerator(tree)
117 self.code = gen.getCode()
383 gen = self.FunctionGen(node, self.scopes, isLambda,
385 walk(node.code, gen)
386 gen.finish()
390 self._makeClosure(gen, len(node.defaults))
395 gen = self.ClassGen(node, self.scopes,
397 walk(node.code, gen)
398 gen.finish()
404 self._makeClosure(gen, 0)
660 def _makeClosure(self, gen, args):
661 frees = gen.scope.get_free_vars()
666 self.emit('LOAD_CONST', gen)
669 self.emit('LOAD_CONST', gen)
673 gen = GenExprCodeGenerator(node, self.scopes, self.class_name,
675 walk(node.code, gen)
676 gen.finish()
678 self._makeClosure(gen, 0)