[][src]Trait moore_svlog::hir::Visitor

pub trait Visitor<'a>: Sized {
    type Context: Context<'a>;
    fn context(&self) -> &Self::Context;

    fn visit_node_with_id(&mut self, node_id: NodeId, lvalue: bool) { ... }
fn visit_node(&mut self, node: HirNode<'a>, lvalue: bool) { ... }
fn visit_ident(&mut self, _ident: Spanned<Name>) { ... }
fn visit_unary_op(&mut self, _op: UnaryOp) { ... }
fn visit_binary_op(&mut self, _op: BinaryOp) { ... }
fn visit_module(&mut self, module: &'a Module) { ... }
fn visit_proc(&mut self, prok: &'a Proc) { ... }
fn visit_stmt(&mut self, stmt: &'a Stmt) { ... }
fn visit_expr(&mut self, expr: &'a Expr, lvalue: bool) { ... }
fn visit_timing_control(&mut self, ctrl: &'a TimingControl) { ... }
fn visit_event_expr(&mut self, expr: &'a EventExpr) { ... }
fn visit_event(&mut self, event: &'a Event) { ... }
fn visit_typedef(&mut self, typedef: &'a Typedef) { ... }
fn visit_var_decl(&mut self, decl: &'a VarDecl) { ... }
fn visit_assign(&mut self, assign: &'a Assign) { ... } }

A visitor of the HIR.

Associated Types

type Context: Context<'a>

The type of context that this visitor uses.

Loading content...

Required methods

fn context(&self) -> &Self::Context

Get the context to be used to resolve queries.

Loading content...

Provided methods

fn visit_node_with_id(&mut self, node_id: NodeId, lvalue: bool)

fn visit_node(&mut self, node: HirNode<'a>, lvalue: bool)

fn visit_ident(&mut self, _ident: Spanned<Name>)

fn visit_unary_op(&mut self, _op: UnaryOp)

fn visit_binary_op(&mut self, _op: BinaryOp)

fn visit_module(&mut self, module: &'a Module)

fn visit_proc(&mut self, prok: &'a Proc)

fn visit_stmt(&mut self, stmt: &'a Stmt)

fn visit_expr(&mut self, expr: &'a Expr, lvalue: bool)

fn visit_timing_control(&mut self, ctrl: &'a TimingControl)

fn visit_event_expr(&mut self, expr: &'a EventExpr)

fn visit_event(&mut self, event: &'a Event)

fn visit_typedef(&mut self, typedef: &'a Typedef)

fn visit_var_decl(&mut self, decl: &'a VarDecl)

fn visit_assign(&mut self, assign: &'a Assign)

Loading content...

Implementors

Loading content...