[−][src]Trait luaparse::VisitorMut
The trait intended to be implemented by visitors.
Provided methods
fn visit_expr(&mut self, expr: &mut Expr<'a>)
Visit a syntax node.
This node is non-terminal and implements AstDescend
. If you're overring this
function, call descend_mut(self)
manually.
The default behavior: call descend_mut(self)
.
fn visit_prefix_expr(&mut self, prefix_expr: &mut PrefixExpr<'a>)
Visit a syntax node.
This node is non-terminal and implements AstDescend
. If you're overring this
function, call descend_mut(self)
manually.
The default behavior: call descend_mut(self)
.
fn visit_var_field(&mut self, var_field: &mut VarField<'a>)
Visit a syntax node.
This node is non-terminal and implements AstDescend
. If you're overring this
function, call descend_mut(self)
manually.
The default behavior: call descend_mut(self)
.
fn visit_table_constructor(
&mut self,
table_constructor: &mut TableConstructor<'a>
)
&mut self,
table_constructor: &mut TableConstructor<'a>
)
Visit a syntax node.
This node is non-terminal and implements AstDescend
. If you're overring this
function, call descend_mut(self)
manually.
The default behavior: call descend_mut(self)
.
fn visit_callee(&mut self, callee: &mut FunctionCallee<'a>)
Visit a syntax node.
This node is non-terminal and implements AstDescend
. If you're overring this
function, call descend_mut(self)
manually.
The default behavior: call descend_mut(self)
.
fn visit_args(&mut self, args: &mut FunctionArgs<'a>)
Visit a syntax node.
This node is non-terminal and implements AstDescend
. If you're overring this
function, call descend_mut(self)
manually.
The default behavior: call descend_mut(self)
.
fn visit_var(&mut self, var: &mut Var<'a>)
Visit a syntax node.
This node is non-terminal and implements AstDescend
. If you're overring this
function, call descend_mut(self)
manually.
The default behavior: call descend_mut(self)
.
fn visit_function_call(&mut self, function_call: &mut FunctionCall<'a>)
Visit a syntax node.
This node is non-terminal and implements AstDescend
. If you're overring this
function, call descend_mut(self)
manually.
The default behavior: call descend_mut(self)
.
fn visit_un_op(&mut self, un_op: &mut UnOpExpr<'a>)
Visit a syntax node.
This node is non-terminal and implements AstDescend
. If you're overring this
function, call descend_mut(self)
manually.
The default behavior: call descend_mut(self)
.
fn visit_bin_op(&mut self, bin_op: &mut BinOpExpr<'a>)
Visit a syntax node.
This node is non-terminal and implements AstDescend
. If you're overring this
function, call descend_mut(self)
manually.
The default behavior: call descend_mut(self)
.
fn visit_function_expr(&mut self, function_expr: &mut FunctionExpr<'a>)
Visit a syntax node.
This node is non-terminal and implements AstDescend
. If you're overring this
function, call descend_mut(self)
manually.
The default behavior: call descend_mut(self)
.
fn visit_table_field(&mut self, table_field: &mut TableField<'a>)
Visit a syntax node.
This node is non-terminal and implements AstDescend
. If you're overring this
function, call descend_mut(self)
manually.
The default behavior: call descend_mut(self)
.
fn visit_table_key(&mut self, table_key: &mut TableKey<'a>)
Visit a syntax node.
This node is non-terminal and implements AstDescend
. If you're overring this
function, call descend_mut(self)
manually.
The default behavior: call descend_mut(self)
.
fn visit_stmt(&mut self, stmt: &mut Statement<'a>)
Visit a syntax node.
This node is non-terminal and implements AstDescend
. If you're overring this
function, call descend_mut(self)
manually.
The default behavior: call descend_mut(self)
.
fn visit_block(&mut self, block: &mut Block<'a>)
Visit a syntax node.
This node is non-terminal and implements AstDescend
. If you're overring this
function, call descend_mut(self)
manually.
The default behavior: call descend_mut(self)
.
fn visit_return_stmt(&mut self, stmt: &mut ReturnStat<'a>)
Visit a syntax node.
This node is non-terminal and implements AstDescend
. If you're overring this
function, call descend_mut(self)
manually.
The default behavior: call descend_mut(self)
.
fn visit_assignment_stmt(&mut self, stmt: &mut AssignmentStat<'a>)
Visit a syntax node.
This node is non-terminal and implements AstDescend
. If you're overring this
function, call descend_mut(self)
manually.
The default behavior: call descend_mut(self)
.
fn visit_while_stmt(&mut self, stmt: &mut WhileStat<'a>)
Visit a syntax node.
This node is non-terminal and implements AstDescend
. If you're overring this
function, call descend_mut(self)
manually.
The default behavior: call descend_mut(self)
.
fn visit_for_stmt(&mut self, stmt: &mut ForStat<'a>)
Visit a syntax node.
This node is non-terminal and implements AstDescend
. If you're overring this
function, call descend_mut(self)
manually.
The default behavior: call descend_mut(self)
.
fn visit_repeat_stmt(&mut self, stmt: &mut RepeatStat<'a>)
Visit a syntax node.
This node is non-terminal and implements AstDescend
. If you're overring this
function, call descend_mut(self)
manually.
The default behavior: call descend_mut(self)
.
fn visit_local_decl(&mut self, stmt: &mut LocalDeclarationStat<'a>)
Visit a syntax node.
This node is non-terminal and implements AstDescend
. If you're overring this
function, call descend_mut(self)
manually.
The default behavior: call descend_mut(self)
.
fn visit_function_decl(&mut self, stmt: &mut FunctionDeclarationStat<'a>)
Visit a syntax node.
This node is non-terminal and implements AstDescend
. If you're overring this
function, call descend_mut(self)
manually.
The default behavior: call descend_mut(self)
.
fn visit_label_stmt(&mut self, stmt: &mut LabelStat<'a>)
Visit a syntax node.
This node is non-terminal and implements AstDescend
. If you're overring this
function, call descend_mut(self)
manually.
The default behavior: call descend_mut(self)
.
fn visit_goto_stmt(&mut self, stmt: &mut GotoStat<'a>)
Visit a syntax node.
This node is non-terminal and implements AstDescend
. If you're overring this
function, call descend_mut(self)
manually.
The default behavior: call descend_mut(self)
.
fn visit_if_stmt(&mut self, stmt: &mut IfStat<'a>)
Visit a syntax node.
This node is non-terminal and implements AstDescend
. If you're overring this
function, call descend_mut(self)
manually.
The default behavior: call descend_mut(self)
.
fn visit_generic_for(&mut self, stmt: &mut GenericFor<'a>)
Visit a syntax node.
This node is non-terminal and implements AstDescend
. If you're overring this
function, call descend_mut(self)
manually.
The default behavior: call descend_mut(self)
.
fn visit_numerical_for(&mut self, stmt: &mut NumericalFor<'a>)
Visit a syntax node.
This node is non-terminal and implements AstDescend
. If you're overring this
function, call descend_mut(self)
manually.
The default behavior: call descend_mut(self)
.
fn visit_function_body(&mut self, body: &mut FunctionBody<'a>)
Visit a syntax node.
This node is non-terminal and implements AstDescend
. If you're overring this
function, call descend_mut(self)
manually.
The default behavior: call descend_mut(self)
.
fn visit_name(&mut self, name: &mut Name<'a>)
Visit a syntax node.
This not is terminal and does not implement AstDescend
.
The default behavior: do nothing.
fn visit_string_lit(&mut self, string_lit: &mut StringLit<'a>)
Visit a syntax node.
This not is terminal and does not implement AstDescend
.
The default behavior: do nothing.
fn visit_nil_lit(&mut self, nil_lit: &mut NilLit<'a>)
Visit a syntax node.
This not is terminal and does not implement AstDescend
.
The default behavior: do nothing.
fn visit_boolean_lit(&mut self, boolean_lit: &mut BooleanLit<'a>)
Visit a syntax node.
This not is terminal and does not implement AstDescend
.
The default behavior: do nothing.
fn visit_number_lit(&mut self, number_lit: &mut NumberLit<'a>)
Visit a syntax node.
This not is terminal and does not implement AstDescend
.
The default behavior: do nothing.
fn visit_vararg(&mut self, vararg: &mut Vararg<'a>)
Visit a syntax node.
This not is terminal and does not implement AstDescend
.
The default behavior: do nothing.
fn visit_empty_stmt(&mut self, stmt: &mut EmptyStat<'a>)
Visit a syntax node.
This not is terminal and does not implement AstDescend
.
The default behavior: do nothing.
fn visit_break_stmt(&mut self, stmt: &mut BreakStat<'a>)
Visit a syntax node.
This not is terminal and does not implement AstDescend
.
The default behavior: do nothing.