

def handle_new_variable_found(self, node):
    current_scope = self.get_current_scope()
    scope_visibility_hint = detect_scope_visibility(node, current_scope)
    if (scope_visibility_hint is None):
        return
    is_implicit = scope_visibility_hint['is_implicit']
    is_function = is_function_identifier(node)
    if is_builtin_variable(node):
        self._add_builtin_variable(node, is_function=is_function, is_implicit=is_implicit)
        return
    objective_scope = self._get_objective_scope(node)
    self._add_variable(objective_scope, node, is_function=is_function, is_implicit=is_implicit)

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