binding = False
def analyse_declarations(self, env):
- # XXX: dirty hack to disable assignment synthesis
- self.def_node.needs_assignment_synthesis = lambda *args, **kwargs: False
+ self.def_node.no_assignment_synthesis = True
self.def_node.analyse_declarations(env)
- #super(GeneratorExpressionNode, self).analyse_declarations(env)
env.add_lambda_def(self.def_node)
def generate_result_code(self, code):
num_required_kw_args = 0
reqd_kw_flags_cname = "0"
is_wrapper = 0
+ no_assignment_synthesis = 0
decorators = None
return_type_annotation = None
entry = None
self.synthesize_assignment_node(env)
def needs_assignment_synthesis(self, env, code=None):
+ if self.no_assignment_synthesis:
+ return False
# Should enable for module level as well, that will require more testing...
if self.entry.is_anonymous:
return True