pub trait OwnedScopeVisitor {
Show 16 methods
// Provided methods
fn visit_program(
&mut self,
_program: &Program,
_scope: &OwnedScope,
) -> ControlFlow<()> { ... }
fn visit_stmt(
&mut self,
_stmt: &Stmt,
_scope: &OwnedScope,
) -> ControlFlow<()> { ... }
fn visit_expr(
&mut self,
_expr: &Expr,
_scope: &OwnedScope,
) -> ControlFlow<()> { ... }
fn visit_param(
&mut self,
_param: &Param,
_scope: &OwnedScope,
) -> ControlFlow<()> { ... }
fn visit_arg(&mut self, _arg: &Arg, _scope: &OwnedScope) -> ControlFlow<()> { ... }
fn visit_class_member(
&mut self,
_member: &ClassMember,
_scope: &OwnedScope,
) -> ControlFlow<()> { ... }
fn visit_enum_member(
&mut self,
_member: &EnumMember,
_scope: &OwnedScope,
) -> ControlFlow<()> { ... }
fn visit_property_hook(
&mut self,
_hook: &PropertyHook,
_scope: &OwnedScope,
) -> ControlFlow<()> { ... }
fn visit_type_hint(
&mut self,
_type_hint: &TypeHint,
_scope: &OwnedScope,
) -> ControlFlow<()> { ... }
fn visit_attribute(
&mut self,
_attribute: &Attribute,
_scope: &OwnedScope,
) -> ControlFlow<()> { ... }
fn visit_catch_clause(
&mut self,
_catch: &CatchClause,
_scope: &OwnedScope,
) -> ControlFlow<()> { ... }
fn visit_match_arm(
&mut self,
_arm: &MatchArm,
_scope: &OwnedScope,
) -> ControlFlow<()> { ... }
fn visit_closure_use_var(
&mut self,
_var: &ClosureUseVar,
_scope: &OwnedScope,
) -> ControlFlow<()> { ... }
fn visit_trait_use(
&mut self,
_trait_use: &TraitUseDecl,
_scope: &OwnedScope,
) -> ControlFlow<()> { ... }
fn visit_trait_adaptation(
&mut self,
_adaptation: &TraitAdaptation,
_scope: &OwnedScope,
) -> ControlFlow<()> { ... }
fn visit_comment(
&mut self,
_comment: &Comment,
_scope: &OwnedScope,
) -> ControlFlow<()> { ... }
}Expand description
A scope-aware variant of OwnedVisitor.
Every visit method receives an OwnedScope describing the lexical context
at that node. Drive traversal with OwnedScopeWalker.