Skip to main content

CollectorVisitor

Struct CollectorVisitor 

Source
pub struct CollectorVisitor<'tcx> { /* private fields */ }

Trait Implementations§

Source§

impl<'tcx> AstVisitorRust<'tcx, CollectorScopes<'tcx>> for CollectorVisitor<'tcx>

Source§

fn visit_block( &mut self, unit: &CompileUnit<'tcx>, node: &HirNode<'tcx>, scopes: &mut CollectorScopes<'tcx>, _namespace: &'tcx Scope<'tcx>, parent: Option<&Symbol>, )

AST: block { … } Purpose: Create a new lexical scope for block-scoped variables and statements

Source§

fn visit_source_file( &mut self, unit: &CompileUnit<'tcx>, node: &HirNode<'tcx>, scopes: &mut CollectorScopes<'tcx>, namespace: &'tcx Scope<'tcx>, parent: Option<&Symbol>, )

AST: source_file - root node of the compilation unit Purpose: Parse crate/module names, create file scope, set up global symbol namespace

Source§

fn visit_mod_item( &mut self, unit: &CompileUnit<'tcx>, node: &HirNode<'tcx>, scopes: &mut CollectorScopes<'tcx>, namespace: &'tcx Scope<'tcx>, parent: Option<&Symbol>, )

AST: mod name { … } or mod name; Purpose: Create namespace scope for module, declare module symbol

Source§

fn visit_function_item( &mut self, unit: &CompileUnit<'tcx>, node: &HirNode<'tcx>, scopes: &mut CollectorScopes<'tcx>, namespace: &'tcx Scope<'tcx>, parent: Option<&Symbol>, )

AST: fn name(…) -> Type { … } Purpose: Declare function symbol, create function scope for parameters and body

Source§

fn visit_function_signature_item( &mut self, unit: &CompileUnit<'tcx>, node: &HirNode<'tcx>, scopes: &mut CollectorScopes<'tcx>, namespace: &'tcx Scope<'tcx>, parent: Option<&Symbol>, )

AST: extern “C” fn signature or trait method signature Purpose: Declare function symbol for extern/trait function signatures

Source§

fn visit_struct_item( &mut self, unit: &CompileUnit<'tcx>, node: &HirNode<'tcx>, scopes: &mut CollectorScopes<'tcx>, namespace: &'tcx Scope<'tcx>, parent: Option<&Symbol>, )

AST: struct Name { fields… } or struct Name(types…); Purpose: Declare struct symbol, create struct scope for fields and methods

Source§

fn visit_enum_item( &mut self, unit: &CompileUnit<'tcx>, node: &HirNode<'tcx>, scopes: &mut CollectorScopes<'tcx>, namespace: &'tcx Scope<'tcx>, parent: Option<&Symbol>, )

AST: enum Name { variants… } Purpose: Declare enum symbol, create enum scope for variants

Source§

fn visit_trait_item( &mut self, unit: &CompileUnit<'tcx>, node: &HirNode<'tcx>, scopes: &mut CollectorScopes<'tcx>, namespace: &'tcx Scope<'tcx>, parent: Option<&Symbol>, )

AST: trait Name { associated items… } Purpose: Declare trait symbol, create trait scope for methods and associated types

Source§

fn visit_impl_item( &mut self, unit: &CompileUnit<'tcx>, node: &HirNode<'tcx>, scopes: &mut CollectorScopes<'tcx>, _namespace: &'tcx Scope<'tcx>, _parent: Option<&Symbol>, )

AST: impl [Trait for] Type { methods… } Purpose: Create impl scope for methods

Source§

fn visit_macro_definition( &mut self, unit: &CompileUnit<'tcx>, node: &HirNode<'tcx>, scopes: &mut CollectorScopes<'tcx>, namespace: &'tcx Scope<'tcx>, parent: Option<&Symbol>, )

AST: macro_rules! name { … } Purpose: Declare macro symbol for later macro invocation resolution

Source§

fn visit_const_item( &mut self, unit: &CompileUnit<'tcx>, node: &HirNode<'tcx>, scopes: &mut CollectorScopes<'tcx>, namespace: &'tcx Scope<'tcx>, _parent: Option<&Symbol>, )

AST: const NAME: Type = value; Purpose: Declare const symbol and visit initializer expression for dependencies

Source§

fn visit_static_item( &mut self, unit: &CompileUnit<'tcx>, node: &HirNode<'tcx>, scopes: &mut CollectorScopes<'tcx>, namespace: &'tcx Scope<'tcx>, _parent: Option<&Symbol>, )

AST: static NAME: Type = value; Purpose: Declare static symbol and visit initializer expression for dependencies

Source§

fn visit_type_item( &mut self, unit: &CompileUnit<'tcx>, node: &HirNode<'tcx>, scopes: &mut CollectorScopes<'tcx>, namespace: &'tcx Scope<'tcx>, _parent: Option<&Symbol>, )

AST: type Name = AnotherType; Purpose: Declare type alias symbol and visit the aliased type for dependencies

Source§

fn visit_type_parameter( &mut self, unit: &CompileUnit<'tcx>, node: &HirNode<'tcx>, scopes: &mut CollectorScopes<'tcx>, namespace: &'tcx Scope<'tcx>, parent: Option<&Symbol>, )

AST: Generic type parameter T or K in fn<T, K>(…) or struct { … } Purpose: Declare type parameter symbol within generic scope

Source§

fn visit_const_parameter( &mut self, unit: &CompileUnit<'tcx>, node: &HirNode<'tcx>, scopes: &mut CollectorScopes<'tcx>, namespace: &'tcx Scope<'tcx>, parent: Option<&Symbol>, )

AST: Generic const parameter N in fn(…) or struct { … } Purpose: Declare const parameter symbol and add dependency to owner

Source§

fn visit_associated_type( &mut self, unit: &CompileUnit<'tcx>, node: &HirNode<'tcx>, scopes: &mut CollectorScopes<'tcx>, namespace: &'tcx Scope<'tcx>, parent: Option<&Symbol>, )

AST: type Assoc = Type; in trait definition Purpose: Declare associated type symbol within trait scope

Source§

fn visit_where_predicate( &mut self, unit: &CompileUnit<'tcx>, node: &HirNode<'tcx>, scopes: &mut CollectorScopes<'tcx>, namespace: &'tcx Scope<'tcx>, parent: Option<&Symbol>, )

AST: where T: Trait, U: Send, … in generic bounds Purpose: Visit where clause bounds for type dependency tracking

Source§

fn visit_array_type( &mut self, unit: &CompileUnit<'tcx>, node: &HirNode<'tcx>, scopes: &mut CollectorScopes<'tcx>, namespace: &'tcx Scope<'tcx>, parent: Option<&Symbol>, )

AST: [Type; N] or [Type] Purpose: visit array type element and length for dependency tracking

Source§

fn visit_tuple_type( &mut self, unit: &CompileUnit<'tcx>, node: &HirNode<'tcx>, scopes: &mut CollectorScopes<'tcx>, namespace: &'tcx Scope<'tcx>, parent: Option<&Symbol>, )

AST: (Type1, Type2, …) tuple type Purpose: Visit tuple element types for dependency tracking

Source§

fn visit_primitive_type( &mut self, unit: &CompileUnit<'tcx>, node: &HirNode<'tcx>, scopes: &mut CollectorScopes<'tcx>, namespace: &'tcx Scope<'tcx>, parent: Option<&Symbol>, )

AST: i32, u64, f32, bool, str, etc. - primitive type keyword Purpose: Visit primitive type children (minimal, mostly a no-op)

Source§

fn visit_abstract_type( &mut self, unit: &CompileUnit<'tcx>, node: &HirNode<'tcx>, scopes: &mut CollectorScopes<'tcx>, namespace: &'tcx Scope<'tcx>, parent: Option<&Symbol>, )

AST: dyn Trait or impl Trait or other advanced type constructs Purpose: Visit abstract type children for trait dependency tracking

Source§

fn visit_field_declaration( &mut self, unit: &CompileUnit<'tcx>, node: &HirNode<'tcx>, scopes: &mut CollectorScopes<'tcx>, namespace: &'tcx Scope<'tcx>, parent: Option<&Symbol>, )

AST: field_name: Type in struct body Purpose: Declare field symbol and visit field type for dependencies

Source§

fn visit_enum_variant( &mut self, unit: &CompileUnit<'tcx>, node: &HirNode<'tcx>, scopes: &mut CollectorScopes<'tcx>, namespace: &'tcx Scope<'tcx>, parent: Option<&Symbol>, )

AST: Variant in enum { Variant, Variant(Type), Variant { field: Type }, … } Purpose: Declare enum variant symbol and link it to parent enum via type_of

Source§

fn visit_parameter( &mut self, unit: &CompileUnit<'tcx>, node: &HirNode<'tcx>, scopes: &mut CollectorScopes<'tcx>, namespace: &'tcx Scope<'tcx>, _parent: Option<&Symbol>, )

AST: parameter in function signature param: Type or pattern, Type in closure Purpose: Declare function/closure parameter as variable symbol

Source§

fn visit_closure_expression( &mut self, unit: &CompileUnit<'tcx>, node: &HirNode<'tcx>, scopes: &mut CollectorScopes<'tcx>, namespace: &'tcx Scope<'tcx>, parent: Option<&Symbol>, )

AST: |param1, param2| { body } - closure/anonymous function Purpose: Create closure scope, declare closure parameters as variables

Source§

fn visit_let_declaration( &mut self, unit: &CompileUnit<'tcx>, node: &HirNode<'tcx>, scopes: &mut CollectorScopes<'tcx>, namespace: &'tcx Scope<'tcx>, parent: Option<&Symbol>, )

AST: let pattern = value; or let pattern: Type = value; statement Purpose: Collect pattern identifiers as variables, handle closure special case

Source§

fn visit_match_block( &mut self, unit: &CompileUnit<'tcx>, node: &HirNode<'tcx>, scopes: &mut CollectorScopes<'tcx>, namespace: &'tcx Scope<'tcx>, parent: Option<&Symbol>, )

Source§

fn visit_node( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Visit a node, dispatching to the appropriate method based on token ID NOTE: scope stack is for lookup convenience, the actual namespace in which names should be mangled and declared. So namespace is semantic home scope for name resolution/mangling, independent of the push stack.
Source§

fn visit_children( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Visit all children of a node
Source§

fn visit_unknown( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Handle unknown/unrecognized token types
Source§

fn visit_Text_fn( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_Text_LPAREN( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_Text_RPAREN( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_Text_LBRACE( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_Text_RBRACE( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_Text_let( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_Text_EQ( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_Text_SEMI( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_Text_COLON( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_Text_COMMA( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_Text_ARROW( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_Text_EQEQ( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_Text_NE( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_Text_LT( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_Text_GT( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_Text_LE( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_Text_GE( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_Text_AMPAMP( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_Text_PIPEPIPE( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_Text_PLUS( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_Text_MINUS( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_Text_STAR( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_Text_SLASH( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_Text_PERCENT( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_attribute_item( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_inner_attribute_item( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_attribute( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_integer_literal( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_float_literal( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_string_literal( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_boolean_literal( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_char_literal( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_type_identifier( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_scoped_identifier( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_scoped_type_identifier( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_field_identifier( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_shorthand_field_identifier( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_identifier( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_ordered_field_declaration_list( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_self_param( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_self_keyword( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_parameters( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_visibility_modifier( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_enum_variant_list( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_bounded_type( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_trait_bounds( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_lifetime( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_function_type( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_reference_type( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_pointer_type( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_generic_type( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_tuple_pattern( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_struct_pattern( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_or_pattern( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_slice_pattern( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_reference_pattern( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_mut_pattern( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_ref_pattern( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_text_node( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_generic_type_with_turbofish( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_index_expression( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_type_cast_expression( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_where_clause( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_mutable_specifier( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_expression_statement( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_assignment_expression( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_binary_expression( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_operator( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_call_expression( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_reference_expression( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_field_expression( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_try_expression( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_await_expression( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_parenthesized_expression( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_macro_invocation( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_arguments( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_struct_expression( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_if_expression( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_match_expression( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_while_expression( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_loop_expression( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_for_expression( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_array_expression( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_tuple_expression( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_unit_expression( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_range_expression( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_unary_expression( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_tuple_struct_pattern( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_closure_parameters( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_super_token( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_crate_token( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_field_name( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_field_type( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_field_pattern( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_field_return_type( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_field_parameters( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_field_bounds( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_field_default_type( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_field_macro( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_field_body( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_field_left( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_field_right( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_field_operator( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_field_function( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_field_arguments( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_field_type_arguments( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_field_value( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_field_field( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_field_trait( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_field_element( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_field_length( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_field_consequence( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_field_argument( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_field_condition( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_field_path( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

impl<'tcx> Debug for CollectorVisitor<'tcx>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<'tcx> !RefUnwindSafe for CollectorVisitor<'tcx>

§

impl<'tcx> !UnwindSafe for CollectorVisitor<'tcx>

§

impl<'tcx> Freeze for CollectorVisitor<'tcx>

§

impl<'tcx> Send for CollectorVisitor<'tcx>

§

impl<'tcx> Sync for CollectorVisitor<'tcx>

§

impl<'tcx> Unpin for CollectorVisitor<'tcx>

§

impl<'tcx> UnsafeUnpin for CollectorVisitor<'tcx>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self> ⓘ

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self> ⓘ

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more