pub trait VisitMut<'ast> {
Show 52 methods
// Provided methods
fn visit_block(&mut self, block: &'ast mut Block) { ... }
fn visit_stmt(&mut self, stmt: &'ast mut Stmt) { ... }
fn visit_stmt_asm(&mut self, _i: &'ast mut StmtAssembly) { ... }
fn visit_stmt_break(&mut self, _i: &'ast mut StmtBreak) { ... }
fn visit_stmt_continue(&mut self, _i: &'ast mut StmtContinue) { ... }
fn visit_stmt_dowhile(&mut self, stmt_dowhile: &'ast mut StmtDoWhile) { ... }
fn visit_stmt_emit(&mut self, emit: &'ast mut StmtEmit) { ... }
fn visit_stmt_for(&mut self, stmt_for: &'ast mut StmtFor) { ... }
fn visit_stmt_if(&mut self, stmt_if: &'ast mut StmtIf) { ... }
fn visit_stmt_return(&mut self, ret: &'ast mut StmtReturn) { ... }
fn visit_stmt_revert(&mut self, rvert: &'ast mut StmtRevert) { ... }
fn visit_stmt_try(&mut self, stmt_try: &'ast mut StmtTry) { ... }
fn visit_unchecked_block(&mut self, ublock: &'ast mut UncheckedBlock) { ... }
fn visit_stmt_var_decl(&mut self, stmt_var_decl: &'ast mut StmtVarDecl) { ... }
fn visit_stmt_while(&mut self, stmt_while: &'ast mut StmtWhile) { ... }
fn visit_expr(&mut self, expr: &'ast mut Expr) { ... }
fn visit_expr_array(&mut self, i: &'ast mut ExprArray) { ... }
fn visit_expr_binary(&mut self, i: &'ast mut ExprBinary) { ... }
fn visit_expr_call(&mut self, i: &'ast mut ExprCall) { ... }
fn visit_expr_call_options(&mut self, i: &'ast mut ExprCallOptions) { ... }
fn visit_expr_delete(&mut self, i: &'ast mut ExprDelete) { ... }
fn visit_expr_index(&mut self, i: &'ast mut ExprIndex) { ... }
fn visit_lit(&mut self, i: &'ast mut Lit) { ... }
fn visit_lit_denominated(&mut self, i: &'ast mut LitDenominated) { ... }
fn visit_expr_member(&mut self, i: &'ast mut ExprMember) { ... }
fn visit_expr_new(&mut self, i: &'ast mut ExprNew) { ... }
fn visit_expr_payable(&mut self, i: &'ast mut ExprPayable) { ... }
fn visit_expr_postfix(&mut self, i: &'ast mut ExprPostfix) { ... }
fn visit_expr_ternary(&mut self, i: &'ast mut ExprTernary) { ... }
fn visit_expr_tuple(&mut self, i: &'ast mut ExprTuple) { ... }
fn visit_expr_type_call(&mut self, i: &'ast mut ExprTypeCall) { ... }
fn visit_expr_unary(&mut self, i: &'ast mut ExprUnary) { ... }
fn visit_lit_str(&mut self, lit: &'ast mut LitStr) { ... }
fn visit_ident(&mut self, ident: &'ast mut SolIdent) { ... }
fn visit_path(&mut self, ident: &'ast mut SolPath) { ... }
fn visit_type(&mut self, ty: &'ast mut Type) { ... }
fn visit_variable_declaration(&mut self, var: &'ast mut VariableDeclaration) { ... }
fn visit_variable_definition(&mut self, var: &'ast mut VariableDefinition) { ... }
fn visit_parameter_list(&mut self, params: &'ast mut ParameterList) { ... }
fn visit_field_list(&mut self, params: &'ast mut FieldList) { ... }
fn visit_file(&mut self, file: &'ast mut File) { ... }
fn visit_item(&mut self, item: &'ast mut Item) { ... }
fn visit_item_contract(&mut self, contract: &'ast mut ItemContract) { ... }
fn visit_item_enum(&mut self, enumm: &'ast mut ItemEnum) { ... }
fn visit_item_error(&mut self, error: &'ast mut ItemError) { ... }
fn visit_item_event(&mut self, event: &'ast mut ItemEvent) { ... }
fn visit_item_function(&mut self, function: &'ast mut ItemFunction) { ... }
fn visit_import_directive(&mut self, import: &'ast mut ImportDirective) { ... }
fn visit_pragma_directive(&mut self, pragma: &'ast mut PragmaDirective) { ... }
fn visit_item_struct(&mut self, strukt: &'ast mut ItemStruct) { ... }
fn visit_item_udt(&mut self, udt: &'ast mut ItemUdt) { ... }
fn visit_using_directive(&mut self, using: &'ast mut UsingDirective) { ... }
}
Available on crate feature
visit-mut
only.Expand description
Syntax tree traversal to mutate an exclusive borrow of a syntax tree in place.
See the module documentation for details.