Visitor

Trait Visitor 

Source
pub trait Visitor {
Show 51 methods // Provided methods fn visit_source_unit(&mut self, _source_unit: &SourceUnit) { ... } fn visit_import_directive(&mut self, _directive: &ImportDirective) { ... } fn visit_pragma_directive(&mut self, _directive: &PragmaDirective) { ... } fn visit_block(&mut self, _block: &Block) { ... } fn visit_statement(&mut self, _statement: &Statement) { ... } fn visit_expression(&mut self, _expression: &Expression) { ... } fn visit_function_call(&mut self, _function_call: &FunctionCall) { ... } fn visit_user_defined_type_name(&mut self, _type_name: &UserDefinedTypeName) { ... } fn visit_identifier_path(&mut self, _identifier_path: &IdentifierPath) { ... } fn visit_type_name(&mut self, _type_name: &TypeName) { ... } fn visit_parameter_list(&mut self, _parameter_list: &ParameterList) { ... } fn visit_function_definition(&mut self, _definition: &FunctionDefinition) { ... } fn visit_enum_definition(&mut self, _definition: &EnumDefinition) { ... } fn visit_error_definition(&mut self, _definition: &ErrorDefinition) { ... } fn visit_event_definition(&mut self, _definition: &EventDefinition) { ... } fn visit_struct_definition(&mut self, _definition: &StructDefinition) { ... } fn visit_modifier_definition(&mut self, _definition: &ModifierDefinition) { ... } fn visit_variable_declaration(&mut self, _declaration: &VariableDeclaration) { ... } fn visit_overrides(&mut self, _specifier: &OverrideSpecifier) { ... } fn visit_user_defined_value_type( &mut self, _value_type: &UserDefinedValueTypeDefinition, ) { ... } fn visit_contract_definition(&mut self, _definition: &ContractDefinition) { ... } fn visit_using_for(&mut self, _directive: &UsingForDirective) { ... } fn visit_unary_operation(&mut self, _unary_op: &UnaryOperation) { ... } fn visit_binary_operation(&mut self, _binary_op: &BinaryOperation) { ... } fn visit_conditional(&mut self, _conditional: &Conditional) { ... } fn visit_tuple_expression(&mut self, _tuple_expression: &TupleExpression) { ... } fn visit_new_expression(&mut self, _new_expression: &NewExpression) { ... } fn visit_assignment(&mut self, _assignment: &Assignment) { ... } fn visit_identifier(&mut self, _identifier: &Identifier) { ... } fn visit_index_access(&mut self, _index_access: &IndexAccess) { ... } fn visit_index_range_access( &mut self, _index_range_access: &IndexRangeAccess, ) { ... } fn visit_while_statement(&mut self, _while_statement: &WhileStatement) { ... } fn visit_for_statement(&mut self, _for_statement: &ForStatement) { ... } fn visit_if_statement(&mut self, _if_statement: &IfStatement) { ... } fn visit_do_while_statement( &mut self, _do_while_statement: &DoWhileStatement, ) { ... } fn visit_emit_statement(&mut self, _emit_statement: &EmitStatement) { ... } fn visit_unchecked_block(&mut self, _unchecked_block: &UncheckedBlock) { ... } fn visit_try_statement(&mut self, _try_statement: &TryStatement) { ... } fn visit_revert_statement(&mut self, _revert_statement: &RevertStatement) { ... } fn visit_member_access(&mut self, _member_access: &MemberAccess) { ... } fn visit_mapping(&mut self, _mapping: &Mapping) { ... } fn visit_elementary_type_name( &mut self, _elementary_type_name: &ElementaryTypeName, ) { ... } fn visit_literal(&mut self, _literal: &Literal) { ... } fn visit_function_type_name( &mut self, _function_type_name: &FunctionTypeName, ) { ... } fn visit_array_type_name(&mut self, _array_type_name: &ArrayTypeName) { ... } fn visit_function_call_options( &mut self, _function_call: &FunctionCallOptions, ) { ... } fn visit_return(&mut self, _return: &Return) { ... } fn visit_inheritance_specifier(&mut self, _specifier: &InheritanceSpecifier) { ... } fn visit_modifier_invocation(&mut self, _invocation: &ModifierInvocation) { ... } fn visit_inline_assembly(&mut self, _assembly: &InlineAssembly) { ... } fn visit_external_assembly_reference( &mut self, _ref: &ExternalInlineAssemblyReference, ) { ... }
}

Provided Methods§

Source

fn visit_source_unit(&mut self, _source_unit: &SourceUnit)

Source

fn visit_import_directive(&mut self, _directive: &ImportDirective)

Source

fn visit_pragma_directive(&mut self, _directive: &PragmaDirective)

Source

fn visit_block(&mut self, _block: &Block)

Source

fn visit_statement(&mut self, _statement: &Statement)

Source

fn visit_expression(&mut self, _expression: &Expression)

Source

fn visit_function_call(&mut self, _function_call: &FunctionCall)

Source

fn visit_user_defined_type_name(&mut self, _type_name: &UserDefinedTypeName)

Source

fn visit_identifier_path(&mut self, _identifier_path: &IdentifierPath)

Source

fn visit_type_name(&mut self, _type_name: &TypeName)

Source

fn visit_parameter_list(&mut self, _parameter_list: &ParameterList)

Source

fn visit_function_definition(&mut self, _definition: &FunctionDefinition)

Source

fn visit_enum_definition(&mut self, _definition: &EnumDefinition)

Source

fn visit_error_definition(&mut self, _definition: &ErrorDefinition)

Source

fn visit_event_definition(&mut self, _definition: &EventDefinition)

Source

fn visit_struct_definition(&mut self, _definition: &StructDefinition)

Source

fn visit_modifier_definition(&mut self, _definition: &ModifierDefinition)

Source

fn visit_variable_declaration(&mut self, _declaration: &VariableDeclaration)

Source

fn visit_overrides(&mut self, _specifier: &OverrideSpecifier)

Source

fn visit_user_defined_value_type( &mut self, _value_type: &UserDefinedValueTypeDefinition, )

Source

fn visit_contract_definition(&mut self, _definition: &ContractDefinition)

Source

fn visit_using_for(&mut self, _directive: &UsingForDirective)

Source

fn visit_unary_operation(&mut self, _unary_op: &UnaryOperation)

Source

fn visit_binary_operation(&mut self, _binary_op: &BinaryOperation)

Source

fn visit_conditional(&mut self, _conditional: &Conditional)

Source

fn visit_tuple_expression(&mut self, _tuple_expression: &TupleExpression)

Source

fn visit_new_expression(&mut self, _new_expression: &NewExpression)

Source

fn visit_assignment(&mut self, _assignment: &Assignment)

Source

fn visit_identifier(&mut self, _identifier: &Identifier)

Source

fn visit_index_access(&mut self, _index_access: &IndexAccess)

Source

fn visit_index_range_access(&mut self, _index_range_access: &IndexRangeAccess)

Source

fn visit_while_statement(&mut self, _while_statement: &WhileStatement)

Source

fn visit_for_statement(&mut self, _for_statement: &ForStatement)

Source

fn visit_if_statement(&mut self, _if_statement: &IfStatement)

Source

fn visit_do_while_statement(&mut self, _do_while_statement: &DoWhileStatement)

Source

fn visit_emit_statement(&mut self, _emit_statement: &EmitStatement)

Source

fn visit_unchecked_block(&mut self, _unchecked_block: &UncheckedBlock)

Source

fn visit_try_statement(&mut self, _try_statement: &TryStatement)

Source

fn visit_revert_statement(&mut self, _revert_statement: &RevertStatement)

Source

fn visit_member_access(&mut self, _member_access: &MemberAccess)

Source

fn visit_mapping(&mut self, _mapping: &Mapping)

Source

fn visit_elementary_type_name( &mut self, _elementary_type_name: &ElementaryTypeName, )

Source

fn visit_literal(&mut self, _literal: &Literal)

Source

fn visit_function_type_name(&mut self, _function_type_name: &FunctionTypeName)

Source

fn visit_array_type_name(&mut self, _array_type_name: &ArrayTypeName)

Source

fn visit_function_call_options(&mut self, _function_call: &FunctionCallOptions)

Source

fn visit_return(&mut self, _return: &Return)

Source

fn visit_inheritance_specifier(&mut self, _specifier: &InheritanceSpecifier)

Source

fn visit_modifier_invocation(&mut self, _invocation: &ModifierInvocation)

Source

fn visit_inline_assembly(&mut self, _assembly: &InlineAssembly)

Source

fn visit_external_assembly_reference( &mut self, _ref: &ExternalInlineAssemblyReference, )

Implementors§