pub struct CollectorVisitor<'tcx> { /* private fields */ }Trait Implementations§
Source§impl<'tcx> AstVisitorRust<'tcx, CollectorScopes<'tcx>> for CollectorVisitor<'tcx>
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>,
)
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>,
)
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>,
)
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>,
)
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>,
)
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>,
)
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>,
)
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>,
)
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>,
)
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>,
)
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>,
)
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>,
)
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>,
)
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>,
)
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
Source§fn visit_const_parameter(
&mut self,
unit: &CompileUnit<'tcx>,
node: &HirNode<'tcx>,
scopes: &mut CollectorScopes<'tcx>,
namespace: &'tcx Scope<'tcx>,
parent: Option<&Symbol>,
)
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
Source§fn visit_associated_type(
&mut self,
unit: &CompileUnit<'tcx>,
node: &HirNode<'tcx>,
scopes: &mut CollectorScopes<'tcx>,
namespace: &'tcx Scope<'tcx>,
parent: Option<&Symbol>,
)
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>,
)
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>,
)
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>,
)
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>,
)
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>,
)
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>,
)
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>,
)
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>,
)
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>,
)
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>,
)
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
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>,
)
fn visit_node( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )
Source§fn visit_children(
&mut self,
unit: &CompileUnit<'a>,
node: &HirNode<'a>,
scopes: &mut T,
namespace: &'a Scope<'a>,
parent: Option<&Symbol>,
)
fn visit_children( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )
Source§fn visit_unknown(
&mut self,
unit: &CompileUnit<'a>,
node: &HirNode<'a>,
scopes: &mut T,
namespace: &'a Scope<'a>,
parent: Option<&Symbol>,
)
fn visit_unknown( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )
fn visit_Text_fn( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )
fn visit_Text_LPAREN( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )
fn visit_Text_RPAREN( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )
fn visit_Text_LBRACE( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )
fn visit_Text_RBRACE( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )
fn visit_Text_let( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )
fn visit_Text_EQ( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )
fn visit_Text_SEMI( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )
fn visit_Text_COLON( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )
fn visit_Text_COMMA( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )
fn visit_Text_ARROW( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )
fn visit_Text_EQEQ( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )
fn visit_Text_NE( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )
fn visit_Text_LT( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )
fn visit_Text_GT( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )
fn visit_Text_LE( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )
fn visit_Text_GE( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )
fn visit_Text_AMPAMP( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )
fn visit_Text_PIPEPIPE( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )
fn visit_Text_PLUS( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )
fn visit_Text_MINUS( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )
fn visit_Text_STAR( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )
fn visit_Text_SLASH( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )
fn visit_Text_PERCENT( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )
fn visit_attribute_item( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )
fn visit_inner_attribute_item( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )
fn visit_attribute( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )
fn visit_integer_literal( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )
fn visit_float_literal( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )
fn visit_string_literal( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )
fn visit_boolean_literal( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )
fn visit_char_literal( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )
fn visit_type_identifier( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )
fn visit_scoped_identifier( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )
fn visit_scoped_type_identifier( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )
fn visit_field_identifier( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )
fn visit_shorthand_field_identifier( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )
fn visit_identifier( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )
fn visit_ordered_field_declaration_list( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )
fn visit_self_param( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )
fn visit_self_keyword( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )
fn visit_parameters( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )
fn visit_visibility_modifier( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )
fn visit_enum_variant_list( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )
fn visit_bounded_type( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )
fn visit_trait_bounds( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )
fn visit_lifetime( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )
fn visit_function_type( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )
fn visit_reference_type( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )
fn visit_pointer_type( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )
fn visit_generic_type( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )
fn visit_tuple_pattern( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )
fn visit_struct_pattern( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )
fn visit_or_pattern( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )
fn visit_slice_pattern( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )
fn visit_reference_pattern( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )
fn visit_mut_pattern( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )
fn visit_ref_pattern( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )
fn visit_text_node( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )
fn visit_generic_type_with_turbofish( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )
fn visit_index_expression( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )
fn visit_type_cast_expression( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )
fn visit_where_clause( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )
fn visit_mutable_specifier( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )
fn visit_expression_statement( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )
fn visit_assignment_expression( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )
fn visit_binary_expression( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )
fn visit_operator( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )
fn visit_call_expression( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )
fn visit_reference_expression( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )
fn visit_field_expression( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )
fn visit_try_expression( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )
fn visit_await_expression( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )
fn visit_parenthesized_expression( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )
fn visit_macro_invocation( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )
fn visit_arguments( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )
fn visit_struct_expression( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )
fn visit_if_expression( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )
fn visit_match_expression( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )
fn visit_while_expression( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )
fn visit_loop_expression( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )
fn visit_for_expression( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )
fn visit_array_expression( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )
fn visit_tuple_expression( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )
fn visit_unit_expression( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )
fn visit_range_expression( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )
fn visit_unary_expression( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )
fn visit_tuple_struct_pattern( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )
fn visit_closure_parameters( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )
fn visit_super_token( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )
fn visit_crate_token( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )
fn visit_field_name( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )
fn visit_field_type( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )
fn visit_field_pattern( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )
fn visit_field_return_type( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )
fn visit_field_parameters( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )
fn visit_field_bounds( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )
fn visit_field_default_type( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )
fn visit_field_macro( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )
fn visit_field_body( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )
fn visit_field_left( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )
fn visit_field_right( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )
fn visit_field_operator( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )
fn visit_field_function( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )
fn visit_field_arguments( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )
fn visit_field_type_arguments( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )
fn visit_field_value( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )
fn visit_field_field( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )
fn visit_field_trait( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )
fn visit_field_element( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )
fn visit_field_length( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )
fn visit_field_consequence( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )
fn visit_field_argument( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )
fn visit_field_condition( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )
fn visit_field_path( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )
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> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
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