prefix = env.scope_prefix
func_cname = \
Naming.lambda_func_prefix + u'funcdef' + prefix + self.lambda_name
- entry = env.declare_lambda_function(func_cname, self.pos)
+ binding = Binding(cname = func_cname)
+ entry = env.declare_lambda_function(binding, pos = self.pos)
entry.pymethdef_cname = \
Naming.lambda_func_prefix + u'methdef' + prefix + self.lambda_name
entry.qualified_name = env.qualify_name(self.lambda_name)
entry.is_anonymous = True
return entry
- def declare_lambda_function(self, func_cname, pos):
- binding = self._WTK_setup(None, func_cname, 'private')
- return self.WTK_declare_lambda_function(binding, pos)
-
- def WTK_declare_lambda_function(self, binding,
- pos = None):
+ def declare_lambda_function(self, binding, pos = None):
# Add an entry for an anonymous Python function.
entry = self.WTK_declare_var(binding, py_object_type, pos = pos)
entry.name = EncodedString(binding.cname)