

def _register_variable(self, objective_scope, variable_name, node, is_implicit=False, is_builtin=False, is_function=False):
    variable = self._create_variable(is_implicit=is_implicit, is_builtin=is_builtin)
    objective_variable_list = objective_scope[('functions' if is_function else 'variables')]
    same_name_variables = objective_variable_list.setdefault(variable_name, [])
    same_name_variables.append(variable)
    self.link_registry.link_variable_to_declarative_identifier(variable, node)
    current_scope = self.get_current_scope()
    self.link_registry.link_identifier_to_context_scope(node, current_scope)

dataset/ETHPy150Open Kuniwak/vint/vint/ast/plugin/scope_plugin/scope_linker.py ScopeLinker.ScopeTreeBuilder._register_variable/original