syn_solidity::visit

Trait Visit

Source
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.

Provided Methods§

Source

fn visit_block(&mut self, block: &'ast Block)

Source

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

Source

fn visit_stmt_asm(&mut self, _i: &'ast StmtAssembly)

Source

fn visit_stmt_break(&mut self, _i: &'ast StmtBreak)

Source

fn visit_stmt_continue(&mut self, _i: &'ast StmtContinue)

Source

fn visit_stmt_dowhile(&mut self, stmt_dowhile: &'ast StmtDoWhile)

Source

fn visit_stmt_emit(&mut self, emit: &'ast StmtEmit)

Source

fn visit_stmt_for(&mut self, stmt_for: &'ast StmtFor)

Source

fn visit_stmt_if(&mut self, stmt_if: &'ast StmtIf)

Source

fn visit_stmt_return(&mut self, ret: &'ast StmtReturn)

Source

fn visit_stmt_revert(&mut self, rvert: &'ast StmtRevert)

Source

fn visit_stmt_try(&mut self, stmt_try: &'ast StmtTry)

Source

fn visit_unchecked_block(&mut self, ublock: &'ast UncheckedBlock)

Source

fn visit_stmt_var_decl(&mut self, stmt_var_decl: &'ast StmtVarDecl)

Source

fn visit_stmt_while(&mut self, stmt_while: &'ast StmtWhile)

Source

fn visit_expr(&mut self, expr: &'ast Expr)

Source

fn visit_expr_array(&mut self, i: &'ast ExprArray)

Source

fn visit_expr_binary(&mut self, i: &'ast ExprBinary)

Source

fn visit_expr_call(&mut self, i: &'ast ExprCall)

Source

fn visit_expr_call_options(&mut self, i: &'ast ExprCallOptions)

Source

fn visit_expr_delete(&mut self, i: &'ast ExprDelete)

Source

fn visit_expr_index(&mut self, i: &'ast ExprIndex)

Source

fn visit_lit(&mut self, i: &'ast Lit)

Source

fn visit_lit_denominated(&mut self, i: &'ast LitDenominated)

Source

fn visit_expr_member(&mut self, i: &'ast ExprMember)

Source

fn visit_expr_new(&mut self, i: &'ast ExprNew)

Source

fn visit_expr_payable(&mut self, i: &'ast ExprPayable)

Source

fn visit_expr_postfix(&mut self, i: &'ast ExprPostfix)

Source

fn visit_expr_ternary(&mut self, i: &'ast ExprTernary)

Source

fn visit_expr_tuple(&mut self, i: &'ast ExprTuple)

Source

fn visit_expr_type_call(&mut self, i: &'ast ExprTypeCall)

Source

fn visit_expr_unary(&mut self, i: &'ast ExprUnary)

Source

fn visit_lit_str(&mut self, lit: &'ast LitStr)

Source

fn visit_ident(&mut self, ident: &'ast SolIdent)

Source

fn visit_path(&mut self, ident: &'ast SolPath)

Source

fn visit_type(&mut self, ty: &'ast Type)

Source

fn visit_variable_declaration(&mut self, var: &'ast VariableDeclaration)

Source

fn visit_variable_definition(&mut self, var: &'ast VariableDefinition)

Source

fn visit_parameter_list(&mut self, params: &'ast ParameterList)

Source

fn visit_field_list(&mut self, params: &'ast FieldList)

Source

fn visit_file(&mut self, file: &'ast File)

Source

fn visit_item(&mut self, item: &'ast Item)

Source

fn visit_item_contract(&mut self, contract: &'ast ItemContract)

Source

fn visit_item_enum(&mut self, enumm: &'ast ItemEnum)

Source

fn visit_item_error(&mut self, error: &'ast ItemError)

Source

fn visit_item_event(&mut self, event: &'ast ItemEvent)

Source

fn visit_item_function(&mut self, function: &'ast ItemFunction)

Source

fn visit_import_directive(&mut self, import: &'ast ImportDirective)

Source

fn visit_pragma_directive(&mut self, pragma: &'ast PragmaDirective)

Source

fn visit_item_struct(&mut self, strukt: &'ast ItemStruct)

Source

fn visit_item_udt(&mut self, udt: &'ast ItemUdt)

Source

fn visit_using_directive(&mut self, using: &'ast UsingDirective)

Implementors§