def create_name(self, tree_name): definition = tree_name.get_definition() if definition and definition.type == 'param' and definition.name == tree_name: funcdef = search_ancestor(definition, 'funcdef', 'lambdef') func = self.create_value(funcdef) return AnonymousParamName(func, tree_name) else: context = self.create_context(tree_name) return TreeNameDefinition(context, tree_name)
def get_param_names(self): return [ AnonymousParamName(self, param.name) for param in self.tree_node.get_params() ]
def _convert_param(self, param, name): return AnonymousParamName(self._function_value, name)