Module ImportFrom alias alias ImportFrom alias ImportFrom alias alias alias alias alias alias ImportFrom alias alias Assign NameStore Dict AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Assign NameStore Dict AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Dict AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr ListLoad Str Str Str Str Str ListLoad Str ListLoad Str Str ClassDef bases NameLoad body Expr Str ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr ListLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad SubscriptLoad NameLoad Index Str attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Return SubscriptLoad AttributeLoad NameLoad attr Index Num decorator_list FunctionDef arguments args NameParam defaults body Return SubscriptLoad AttributeLoad NameLoad attr Index Num decorator_list FunctionDef arguments args NameParam defaults body Return SubscriptLoad AttributeLoad NameLoad attr Index Num decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr For NameStore Call NameLoad BinOpSub Num NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad BinOpAdd NameLoad Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad NameLoad If CompareIs NameLoad NameLoad body Return Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore Call NameLoad NameLoad If Call NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword NameLoad Return Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad keyword NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore SubscriptLoad NameLoad Index Str If CompareIs NameLoad AttributeLoad NameLoad attr body Return Call AttributeLoad NameLoad attr If CompareIs NameLoad AttributeLoad NameLoad attr body Return Call AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore BinOpAdd Str SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad keyword NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad keyword NameLoad keyword NameLoad keyword NameLoad Return decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore SubscriptLoad NameLoad Index NameLoad For NameStore NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad Assign NameStore SubscriptLoad NameLoad Index IfExp NameLoad Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad ListLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad body Return Dict Str Str NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Dict Str Str Str Str NameLoad Dict Dict ListLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return Dict Str Str Str AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Dict Assign AttributeStore NameLoad attr Dict decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call NameLoad NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call NameLoad NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad NameLoad Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad NameLoad Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call NameLoad NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults body If UnaryOpNot Call NameLoad NameLoad body Return If Call NameLoad NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Return Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad SubscriptLoad NameLoad Index Str If CompareIs NameLoad AttributeLoad NameLoad attr body Return Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore SubscriptLoad NameLoad Index Str Expr Call NameLoad NameLoad keyword AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign NameStore NameLoad Assign NameStore SubscriptLoad NameLoad Index Str For NameStore NameLoad body If CompareEq SubscriptLoad NameLoad Index Str Str body Assign NameStore NameLoad orelse Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr If NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpSub Call NameLoad NameLoad Num Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore CompareIsNot SubscriptLoad NameLoad Index Str Num If NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore BoolOpOr CompareIsNot SubscriptLoad NameLoad Index Str Num CompareIn Call NameLoad SubscriptLoad NameLoad Index Str NameLoad If NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore SubscriptLoad NameLoad Index Str For NameStore NameLoad body Expr Call NameLoad NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad SubscriptLoad NameLoad Index Str If CompareIs NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list decorator_list
N/A vint.ast.traversing traverse SKIP_CHILDREN vint.ast.node_type NodeType vint.ast.plugin.scope_plugin.scope_detector ScopeVisibility detect_scope_visibility is_analyzable_identifier is_analyzable_declarative_identifier is_builtin_variable normalize_variable_name vint.ast.plugin.scope_plugin.identifier_classifier IdentifierClassifier is_function_identifier N/A DeclarativeNodeTypes N/A N/A NodeType FUNCTION N/A NodeType LET N/A NodeType FOR True True True N/A FunctionNameNodesDeclaringVariableSelf N/A N/A NodeType DOT N/A NodeType SUBSCRIPT True True N/A SymbolTableVariableNames N/A N/A ScopeVisibility GLOBAL_LIKE N/A ScopeVisibility SCRIPT_LOCAL N/A ScopeVisibility FUNCTION_LOCAL N/A g: b: w: t: v: N/A s: N/A l: a: ScopeLinker N/A object N/A N/A  A class for scope linkers.
    The class link identifiers in the given AST node and the scopes where the
    identifier will be declared or referenced.
     ScopeTreeBuilder N/A object N/A N/A  A class for event-driven builders to build a scope tree.
        The class interest to scope-level events rather than AST-level events.
         __init__ N/A N/A self N/A N/A N/A N/A self link_registry N/A N/A ScopeLinker ScopeLinkRegistry N/A global_scope N/A N/A self _create_scope N/A ScopeVisibility GLOBAL_LIKE N/A N/A self _scope_stack N/A global_scope N/A N/A N/A self _add_symbol_table_variables global_scope N/A enter_new_scope N/A N/A self scope_visibility N/A N/A N/A current_scope N/A N/A self get_current_scope N/A new_scope N/A N/A self _create_scope scope_visibility N/A N/A N/A self _add_symbol_table_variables new_scope N/A N/A N/A N/A current_scope N/A child_scopes append new_scope N/A N/A N/A N/A self _scope_stack append new_scope N/A leave_current_scope N/A N/A self N/A N/A N/A N/A N/A N/A self _scope_stack pop N/A get_global_scope N/A N/A self N/A N/A N/A N/A N/A self _scope_stack N/A 0 N/A get_script_local_scope N/A N/A self N/A N/A N/A N/A N/A self _scope_stack N/A 1 N/A get_current_scope N/A N/A self N/A N/A N/A N/A N/A self _scope_stack N/A -1 N/A handle_new_parameter_found N/A N/A self id_node N/A N/A N/A current_scope N/A N/A self get_current_scope N/A N/A N/A self _add_parameter current_scope id_node N/A handle_new_range_parameters_found N/A N/A self N/A N/A N/A firstline_node N/A N/A self _create_virtual_identifier firstline N/A lastline_node N/A N/A self _create_virtual_identifier lastline N/A current_scope N/A N/A self get_current_scope N/A N/A N/A self _add_parameter current_scope firstline_node N/A N/A N/A self _add_parameter current_scope lastline_node N/A handle_new_dict_parameter_found N/A N/A self N/A N/A N/A current_scope N/A N/A self get_current_scope N/A N/A N/A self _add_self_variable current_scope N/A handle_new_parameters_list_and_length_found N/A N/A self N/A N/A N/A param_length_node N/A N/A self _create_virtual_identifier 0 N/A param_list_node N/A N/A self _create_virtual_identifier 000 N/A current_scope N/A N/A self get_current_scope N/A N/A N/A self _add_parameter current_scope param_length_node N/A N/A N/A self _add_parameter current_scope param_list_node N/A handle_new_index_parameters_found N/A N/A self params_number N/A N/A N/A current_scope N/A N/A self get_current_scope N/A variadic_index N/A range N/A 20 params_number N/A N/A variadic_param N/A N/A self _create_virtual_identifier N/A str N/A variadic_index 1 N/A N/A N/A self _add_parameter current_scope variadic_param N/A handle_new_variable_found N/A N/A self node N/A N/A N/A current_scope N/A N/A self get_current_scope N/A scope_visibility_hint N/A detect_scope_visibility node current_scope N/A N/A scope_visibility_hint None N/A N/A N/A is_implicit N/A scope_visibility_hint N/A is_implicit N/A is_function N/A is_function_identifier node N/A N/A is_builtin_variable node N/A N/A N/A N/A self _add_builtin_variable node is_function is_function is_implicit is_implicit N/A N/A objective_scope N/A N/A self _get_objective_scope node N/A N/A N/A self _add_variable objective_scope node is_function is_function is_implicit is_implicit N/A _get_objective_scope N/A N/A self node N/A N/A N/A current_scope N/A N/A self get_current_scope N/A scope_visibility_hint N/A detect_scope_visibility node current_scope N/A scope_visibility N/A scope_visibility_hint N/A scope_visibility N/A N/A scope_visibility N/A ScopeVisibility GLOBAL_LIKE N/A N/A N/A N/A self get_global_scope N/A N/A scope_visibility N/A ScopeVisibility SCRIPT_LOCAL N/A N/A N/A N/A self get_script_local_scope N/A current_scope N/A handle_referencing_identifier_found N/A N/A self node N/A N/A N/A current_scope N/A N/A self get_current_scope N/A N/A N/A N/A self link_registry link_identifier_to_context_scope node current_scope N/A _add_parameter N/A N/A self objective_scope node N/A N/A N/A variable_name N/A a: N/A node N/A value N/A N/A N/A self _register_variable objective_scope variable_name node N/A _add_self_variable N/A N/A self objective_scope N/A N/A N/A variable_name l:self N/A virtual_node N/A N/A self _create_virtual_identifier variable_name N/A N/A N/A self _register_variable objective_scope variable_name virtual_node N/A _add_variable N/A N/A self objective_scope node is_implicit is_function N/A False False N/A N/A current_scope N/A N/A self get_current_scope N/A variable_name N/A normalize_variable_name node current_scope N/A N/A N/A self _register_variable objective_scope variable_name node is_function is_function is_implicit is_implicit N/A _add_builtin_variable N/A N/A self node is_implicit is_function N/A False False N/A N/A current_scope N/A N/A self get_current_scope N/A variable_name N/A normalize_variable_name node current_scope N/A N/A N/A self _register_variable N/A N/A self get_global_scope variable_name node is_implicit is_implicit is_function is_function is_builtin True N/A N/A _add_symbol_table_variables N/A N/A self objective_scope N/A N/A N/A scope_visibility N/A objective_scope N/A scope_visibility N/A symbol_table_variable_names N/A SymbolTableVariableNames N/A scope_visibility N/A symbol_table_variable_name symbol_table_variable_names N/A N/A virtual_node N/A N/A self _create_virtual_identifier symbol_table_variable_name N/A N/A N/A self _register_variable objective_scope symbol_table_variable_name virtual_node N/A _register_variable N/A N/A self objective_scope variable_name node is_implicit is_builtin is_function N/A False False False N/A N/A variable N/A N/A self _create_variable is_implicit is_implicit is_builtin is_builtin N/A objective_variable_list N/A objective_scope N/A N/A is_function functions variables N/A same_name_variables N/A N/A objective_variable_list setdefault variable_name N/A N/A N/A N/A same_name_variables append variable N/A N/A N/A N/A self link_registry link_variable_to_declarative_identifier variable node N/A current_scope N/A N/A self get_current_scope N/A N/A N/A N/A self link_registry link_identifier_to_context_scope node current_scope N/A _create_variable N/A N/A self is_implicit is_builtin N/A False False N/A N/A N/A is_implicit is_builtin is_implicit is_builtin N/A _create_scope N/A N/A self scope_visibility N/A N/A N/A scope N/A scope_visibility functions variables child_scopes scope_visibility N/A N/A N/A N/A scope N/A _create_virtual_identifier N/A N/A self id_value N/A N/A N/A  Returns a virtual identifier.
            Virtual identifier is a virtual node for implicitly declarated
            variables such as: a:0, a:000, a:firstline.
             N/A N/A type value is_virtual N/A N/A NodeType IDENTIFIER value id_value True N/A N/A ScopeLinkRegistry N/A object N/A N/A  A class for registry services for links between scopes and
        identifiers.
         __init__ N/A N/A self N/A N/A N/A N/A self _vars_to_declarative_ids_map N/A N/A N/A self _ids_to_scopes_map N/A N/A link_variable_to_declarative_identifier N/A N/A self variable declaring_id_node N/A N/A N/A variable_id N/A id variable N/A N/A N/A self _vars_to_declarative_ids_map N/A variable_id declaring_id_node N/A link_identifier_to_context_scope N/A N/A self id_node scope N/A N/A N/A node_id N/A id id_node N/A N/A N/A self _ids_to_scopes_map N/A node_id scope N/A get_declarative_identifier_by_variable N/A N/A self variable N/A N/A N/A variable_id N/A id variable N/A N/A N/A N/A self _vars_to_declarative_ids_map get variable_id N/A get_context_scope_by_identifier N/A N/A self identifier N/A N/A N/A node_id N/A id identifier N/A N/A N/A N/A self _ids_to_scopes_map get node_id N/A N/A __init__ N/A N/A self N/A N/A N/A N/A self scope_tree None N/A N/A self link_registry None N/A process N/A N/A self ast N/A N/A N/A  Build a scope tree and links between scopes and identifiers by the
        specified ast. You can access the built scope tree and the built links
        by .scope_tree and .link_registry.
         N/A id_classifier N/A IdentifierClassifier N/A attached_ast N/A N/A id_classifier attach_identifier_attributes ast N/A N/A self _scope_tree_builder N/A N/A ScopeLinker ScopeTreeBuilder N/A N/A N/A N/A self _scope_tree_builder enter_new_scope N/A ScopeVisibility SCRIPT_LOCAL N/A N/A traverse attached_ast on_enter N/A self _enter_handler on_leave N/A self _leave_handler N/A N/A self scope_tree N/A N/A N/A self _scope_tree_builder get_global_scope N/A N/A self link_registry N/A N/A self _scope_tree_builder link_registry N/A _find_variable_like_nodes N/A N/A self node N/A N/A N/A N/A N/A is_analyzable_identifier node N/A N/A N/A N/A is_analyzable_declarative_identifier node N/A N/A N/A N/A N/A self _scope_tree_builder handle_new_variable_found node N/A N/A N/A N/A N/A self _scope_tree_builder handle_referencing_identifier_found node N/A _enter_handler N/A N/A self node N/A N/A N/A node_type N/A NodeType N/A node N/A type N/A N/A node_type N/A NodeType FUNCTION N/A N/A N/A N/A self _handle_function_node node N/A N/A N/A self _find_variable_like_nodes node N/A _handle_function_node N/A N/A self func_node N/A N/A N/A func_name_node N/A func_node N/A left N/A N/A traverse func_name_node on_enter N/A self _find_variable_like_nodes N/A N/A N/A N/A self _scope_tree_builder enter_new_scope N/A ScopeVisibility FUNCTION_LOCAL N/A has_variadic False N/A param_nodes N/A func_node N/A rlist N/A param_node param_nodes N/A N/A N/A N/A param_node N/A value ... N/A N/A has_variadic True N/A N/A N/A N/A N/A self _scope_tree_builder handle_new_parameter_found param_node N/A N/A N/A N/A self _scope_tree_builder handle_new_parameters_list_and_length_found N/A has_variadic N/A N/A N/A N/A N/A self _scope_tree_builder handle_new_index_parameters_found N/A N/A len param_nodes 1 N/A attr N/A func_node N/A attr N/A is_declared_with_range N/A N/A attr N/A range 0 N/A is_declared_with_range N/A N/A N/A N/A N/A self _scope_tree_builder handle_new_range_parameters_found N/A is_declared_with_dict N/A N/A N/A attr N/A dict 0 N/A N/A NodeType N/A func_name_node N/A type FunctionNameNodesDeclaringVariableSelf N/A is_declared_with_dict N/A N/A N/A N/A N/A self _scope_tree_builder handle_new_dict_parameter_found N/A func_body_nodes N/A func_node N/A body N/A func_body_node func_body_nodes N/A N/A N/A traverse func_body_node on_enter N/A self _enter_handler on_leave N/A self _leave_handler N/A SKIP_CHILDREN N/A _leave_handler N/A N/A self node N/A N/A N/A node_type N/A NodeType N/A node N/A type N/A N/A node_type N/A NodeType FUNCTION N/A N/A N/A N/A N/A self _scope_tree_builder leave_current_scope N/A N/A