Module visit

Source
Expand description

Syntax tree traversal to walk a shared borrow of a syntax tree.

Each method of the Visit trait is a hook that can be overridden to customize the behavior when visiting the corresponding type of node. By default, every method recursively visits the substructure of the input by invoking the right visitor method of each of its fields.

Traits§

Visit
Syntax tree traversal to walk a shared borrow of a syntax tree.

Functions§

visit_array_type_name
visit_assignment
visit_binary_operation
visit_block
visit_break
visit_conditional
visit_continue
visit_contract_definition
visit_contract_definition_node_item
visit_do_while
visit_elementary_type_name
visit_elementary_type_name_expression
visit_emit
visit_enum_definition
visit_enum_value
visit_error_definition
visit_event_definition
visit_expression
visit_expression_statement
visit_for
visit_function_call
visit_function_call_options
visit_function_definition
visit_function_type_name
visit_identifier
visit_identifier_path
visit_if
visit_import_directive
visit_import_directive_symbol_aliases_item
visit_index_access
visit_index_range_access
visit_inheritance_specifier
visit_inline_assembly
visit_literal
visit_mapping
visit_member_access
visit_modifier_definition
visit_modifier_invocation
visit_new
visit_parameter_list
visit_placeholder
visit_pragma_directive
visit_return
visit_revert
visit_source_unit
visit_source_unit_nodes_item
visit_statement
visit_struct_definition
visit_structured_documentation
visit_try
visit_try_catch_clause
visit_tuple
visit_type_descriptions
visit_type_name
visit_udt
visit_unary_operation
visit_unchecked
visit_user_defined_type_name
visit_using_for_directive
visit_using_for_directive_function_list_item
visit_variable_declaration
visit_variable_declaration_statement
visit_while
visit_yul_assignment
visit_yul_block
visit_yul_break
visit_yul_case
visit_yul_continue
visit_yul_expression
visit_yul_expression_statement
visit_yul_for
visit_yul_function_call
visit_yul_function_definition
visit_yul_identifier
visit_yul_if
visit_yul_leave
visit_yul_literal
visit_yul_statement
visit_yul_switch
visit_yul_typed_name
visit_yul_variable_declaration