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