[−][src]Trait libslide::grammar::visit::StmtVisitor
Describes a statement list visitor.
Provided methods
fn visit_stmt_list(&mut self, stmt_list: &'a StmtList)
Visits a statement list.
fn visit_stmt(&mut self, stmt: &'a Stmt)
Visits a statement.
fn visit_stmt_kind(&mut self, stmt_kind: &'a StmtKind)
Visits a specific statement kind.
fn visit_asgn(&mut self, asgn: &'a Assignment)
Visits an assignment.
fn visit_asgn_op(&mut self, _asgn_op: &'a AssignmentOp)
Visits an assignment operator.
fn visit_expr(&mut self, expr: &'a RcExpr)
Visits an expression.
fn visit_const(&mut self, _konst: &'a f64, _span: Span)
Visits a constant.
fn visit_var(&mut self, _var: &'a InternedStr, _span: Span)
Visits a variable.
fn visit_binary_op(&mut self, _op: BinaryOperator)
Visits a binary operator.
fn visit_binary(&mut self, expr: &'a BinaryExpr<RcExpr>, span: Span)
Visits a binary expression.
fn visit_unary_op(&mut self, _op: UnaryOperator)
Visits a unary operator.
fn visit_unary(&mut self, expr: &'a UnaryExpr<RcExpr>, span: Span)
Visits a unary expression.
fn visit_parend(&mut self, expr: &'a RcExpr, span: Span)
Visits a parenthesized expression.
fn visit_bracketed(&mut self, expr: &'a RcExpr, span: Span)
Visits a bracketed expression.