dora_parser::ast::visit

Trait Visitor

Source
pub trait Visitor<'v>: Sized {
Show 19 methods // Provided methods fn visit_ast(&mut self, a: &'v Ast) { ... } fn visit_file(&mut self, a: &'v File) { ... } fn visit_global(&mut self, g: &'v Global) { ... } fn visit_trait(&mut self, t: &'v Trait) { ... } fn visit_impl(&mut self, i: &'v Impl) { ... } fn visit_class(&mut self, c: &'v Class) { ... } fn visit_module(&mut self, m: &'v Module) { ... } fn visit_struct(&mut self, s: &'v Struct) { ... } fn visit_const(&mut self, c: &'v Const) { ... } fn visit_enum(&mut self, e: &'v Enum) { ... } fn visit_struct_field(&mut self, f: &'v StructField) { ... } fn visit_ctor(&mut self, m: &'v Function) { ... } fn visit_method(&mut self, m: &'v Function) { ... } fn visit_field(&mut self, p: &'v Field) { ... } fn visit_fct(&mut self, f: &'v Function) { ... } fn visit_param(&mut self, p: &'v Param) { ... } fn visit_type(&mut self, t: &'v Type) { ... } fn visit_stmt(&mut self, s: &'v Stmt) { ... } fn visit_expr(&mut self, e: &'v Expr) { ... }
}

Provided Methods§

Source

fn visit_ast(&mut self, a: &'v Ast)

Source

fn visit_file(&mut self, a: &'v File)

Source

fn visit_global(&mut self, g: &'v Global)

Source

fn visit_trait(&mut self, t: &'v Trait)

Source

fn visit_impl(&mut self, i: &'v Impl)

Source

fn visit_class(&mut self, c: &'v Class)

Source

fn visit_module(&mut self, m: &'v Module)

Source

fn visit_struct(&mut self, s: &'v Struct)

Source

fn visit_const(&mut self, c: &'v Const)

Source

fn visit_enum(&mut self, e: &'v Enum)

Source

fn visit_struct_field(&mut self, f: &'v StructField)

Source

fn visit_ctor(&mut self, m: &'v Function)

Source

fn visit_method(&mut self, m: &'v Function)

Source

fn visit_field(&mut self, p: &'v Field)

Source

fn visit_fct(&mut self, f: &'v Function)

Source

fn visit_param(&mut self, p: &'v Param)

Source

fn visit_type(&mut self, t: &'v Type)

Source

fn visit_stmt(&mut self, s: &'v Stmt)

Source

fn visit_expr(&mut self, e: &'v Expr)

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§