Skip to main content

AstVisitor

Trait AstVisitor 

Source
pub trait AstVisitor {
Show 65 methods // Provided methods fn visit_node(&mut self, _node: AstNodeRef<'_, '_>) -> bool { ... } fn visit_attribute(&mut self, attribute: &Attribute<'_>) -> bool { ... } fn visit_generic_type(&mut self, generic: &GenericType<'_>) -> bool { ... } fn visit_generic_type_pack(&mut self, generic: &GenericTypePack<'_>) -> bool { ... } fn visit_block(&mut self, block: Block<'_>) -> bool { ... } fn visit_statement(&mut self, statement: Statement<'_>) -> bool { ... } fn visit_assign_statement(&mut self, statement: Statement<'_>) -> bool { ... } fn visit_compound_assign_statement( &mut self, statement: Statement<'_>, ) -> bool { ... } fn visit_break_statement(&mut self, statement: Statement<'_>) -> bool { ... } fn visit_continue_statement(&mut self, statement: Statement<'_>) -> bool { ... } fn visit_class_statement(&mut self, statement: Statement<'_>) -> bool { ... } fn visit_expression_statement(&mut self, statement: Statement<'_>) -> bool { ... } fn visit_numeric_for_statement(&mut self, statement: Statement<'_>) -> bool { ... } fn visit_generic_for_statement(&mut self, statement: Statement<'_>) -> bool { ... } fn visit_function_declaration_statement( &mut self, statement: Statement<'_>, ) -> bool { ... } fn visit_if_statement(&mut self, statement: Statement<'_>) -> bool { ... } fn visit_local_function_statement( &mut self, statement: Statement<'_>, ) -> bool { ... } fn visit_local_statement(&mut self, statement: Statement<'_>) -> bool { ... } fn visit_type_alias_statement(&mut self, statement: Statement<'_>) -> bool { ... } fn visit_type_function_statement( &mut self, statement: Statement<'_>, ) -> bool { ... } fn visit_declare_global_statement( &mut self, statement: Statement<'_>, ) -> bool { ... } fn visit_declare_function_statement( &mut self, statement: Statement<'_>, ) -> bool { ... } fn visit_declare_extern_type_statement( &mut self, statement: Statement<'_>, ) -> bool { ... } fn visit_repeat_statement(&mut self, statement: Statement<'_>) -> bool { ... } fn visit_return_statement(&mut self, statement: Statement<'_>) -> bool { ... } fn visit_while_statement(&mut self, statement: Statement<'_>) -> bool { ... } fn visit_error_statement(&mut self, statement: Statement<'_>) -> bool { ... } fn visit_expression(&mut self, expression: Expression<'_>) -> bool { ... } fn visit_boolean_expression(&mut self, expression: Expression<'_>) -> bool { ... } fn visit_call_expression(&mut self, expression: Expression<'_>) -> bool { ... } fn visit_function_literal_expression( &mut self, expression: Expression<'_>, ) -> bool { ... } fn visit_grouped_expression(&mut self, expression: Expression<'_>) -> bool { ... } fn visit_integer_expression(&mut self, expression: Expression<'_>) -> bool { ... } fn visit_nil_expression(&mut self, expression: Expression<'_>) -> bool { ... } fn visit_number_expression(&mut self, expression: Expression<'_>) -> bool { ... } fn visit_string_expression(&mut self, expression: Expression<'_>) -> bool { ... } fn visit_interp_string_expression( &mut self, expression: Expression<'_>, ) -> bool { ... } fn visit_table_expression(&mut self, expression: Expression<'_>) -> bool { ... } fn visit_if_expression(&mut self, expression: Expression<'_>) -> bool { ... } fn visit_varargs_expression(&mut self, expression: Expression<'_>) -> bool { ... } fn visit_index_expression(&mut self, expression: Expression<'_>) -> bool { ... } fn visit_index_name_expression( &mut self, expression: Expression<'_>, ) -> bool { ... } fn visit_type_assertion_expression( &mut self, expression: Expression<'_>, ) -> bool { ... } fn visit_instantiate_expression( &mut self, expression: Expression<'_>, ) -> bool { ... } fn visit_unary_expression(&mut self, expression: Expression<'_>) -> bool { ... } fn visit_local_expression(&mut self, expression: Expression<'_>) -> bool { ... } fn visit_global_expression(&mut self, expression: Expression<'_>) -> bool { ... } fn visit_binary_expression(&mut self, expression: Expression<'_>) -> bool { ... } fn visit_error_expression(&mut self, expression: Expression<'_>) -> bool { ... } fn visit_type(&mut self, _annotation: Type<'_>) -> bool { ... } fn visit_reference_type(&mut self, annotation: Type<'_>) -> bool { ... } fn visit_table_type(&mut self, annotation: Type<'_>) -> bool { ... } fn visit_function_type(&mut self, annotation: Type<'_>) -> bool { ... } fn visit_typeof_type(&mut self, annotation: Type<'_>) -> bool { ... } fn visit_singleton_bool_type(&mut self, annotation: Type<'_>) -> bool { ... } fn visit_singleton_string_type(&mut self, annotation: Type<'_>) -> bool { ... } fn visit_group_type(&mut self, annotation: Type<'_>) -> bool { ... } fn visit_optional_type(&mut self, annotation: Type<'_>) -> bool { ... } fn visit_union_type(&mut self, annotation: Type<'_>) -> bool { ... } fn visit_intersection_type(&mut self, annotation: Type<'_>) -> bool { ... } fn visit_error_type(&mut self, annotation: Type<'_>) -> bool { ... } fn visit_type_pack(&mut self, _annotation: TypePack<'_>) -> bool { ... } fn visit_explicit_type_pack(&mut self, annotation: TypePack<'_>) -> bool { ... } fn visit_variadic_type_pack(&mut self, annotation: TypePack<'_>) -> bool { ... } fn visit_generic_type_pack_type(&mut self, annotation: TypePack<'_>) -> bool { ... }
}

Provided Methods§

Source

fn visit_node(&mut self, _node: AstNodeRef<'_, '_>) -> bool

Source

fn visit_attribute(&mut self, attribute: &Attribute<'_>) -> bool

Source

fn visit_generic_type(&mut self, generic: &GenericType<'_>) -> bool

Source

fn visit_generic_type_pack(&mut self, generic: &GenericTypePack<'_>) -> bool

Source

fn visit_block(&mut self, block: Block<'_>) -> bool

Source

fn visit_statement(&mut self, statement: Statement<'_>) -> bool

Source

fn visit_assign_statement(&mut self, statement: Statement<'_>) -> bool

Source

fn visit_compound_assign_statement(&mut self, statement: Statement<'_>) -> bool

Source

fn visit_break_statement(&mut self, statement: Statement<'_>) -> bool

Source

fn visit_continue_statement(&mut self, statement: Statement<'_>) -> bool

Source

fn visit_class_statement(&mut self, statement: Statement<'_>) -> bool

Source

fn visit_expression_statement(&mut self, statement: Statement<'_>) -> bool

Source

fn visit_numeric_for_statement(&mut self, statement: Statement<'_>) -> bool

Source

fn visit_generic_for_statement(&mut self, statement: Statement<'_>) -> bool

Source

fn visit_function_declaration_statement( &mut self, statement: Statement<'_>, ) -> bool

Source

fn visit_if_statement(&mut self, statement: Statement<'_>) -> bool

Source

fn visit_local_function_statement(&mut self, statement: Statement<'_>) -> bool

Source

fn visit_local_statement(&mut self, statement: Statement<'_>) -> bool

Source

fn visit_type_alias_statement(&mut self, statement: Statement<'_>) -> bool

Source

fn visit_type_function_statement(&mut self, statement: Statement<'_>) -> bool

Source

fn visit_declare_global_statement(&mut self, statement: Statement<'_>) -> bool

Source

fn visit_declare_function_statement(&mut self, statement: Statement<'_>) -> bool

Source

fn visit_declare_extern_type_statement( &mut self, statement: Statement<'_>, ) -> bool

Source

fn visit_repeat_statement(&mut self, statement: Statement<'_>) -> bool

Source

fn visit_return_statement(&mut self, statement: Statement<'_>) -> bool

Source

fn visit_while_statement(&mut self, statement: Statement<'_>) -> bool

Source

fn visit_error_statement(&mut self, statement: Statement<'_>) -> bool

Source

fn visit_expression(&mut self, expression: Expression<'_>) -> bool

Source

fn visit_boolean_expression(&mut self, expression: Expression<'_>) -> bool

Source

fn visit_call_expression(&mut self, expression: Expression<'_>) -> bool

Source

fn visit_function_literal_expression( &mut self, expression: Expression<'_>, ) -> bool

Source

fn visit_grouped_expression(&mut self, expression: Expression<'_>) -> bool

Source

fn visit_integer_expression(&mut self, expression: Expression<'_>) -> bool

Source

fn visit_nil_expression(&mut self, expression: Expression<'_>) -> bool

Source

fn visit_number_expression(&mut self, expression: Expression<'_>) -> bool

Source

fn visit_string_expression(&mut self, expression: Expression<'_>) -> bool

Source

fn visit_interp_string_expression(&mut self, expression: Expression<'_>) -> bool

Source

fn visit_table_expression(&mut self, expression: Expression<'_>) -> bool

Source

fn visit_if_expression(&mut self, expression: Expression<'_>) -> bool

Source

fn visit_varargs_expression(&mut self, expression: Expression<'_>) -> bool

Source

fn visit_index_expression(&mut self, expression: Expression<'_>) -> bool

Source

fn visit_index_name_expression(&mut self, expression: Expression<'_>) -> bool

Source

fn visit_type_assertion_expression( &mut self, expression: Expression<'_>, ) -> bool

Source

fn visit_instantiate_expression(&mut self, expression: Expression<'_>) -> bool

Source

fn visit_unary_expression(&mut self, expression: Expression<'_>) -> bool

Source

fn visit_local_expression(&mut self, expression: Expression<'_>) -> bool

Source

fn visit_global_expression(&mut self, expression: Expression<'_>) -> bool

Source

fn visit_binary_expression(&mut self, expression: Expression<'_>) -> bool

Source

fn visit_error_expression(&mut self, expression: Expression<'_>) -> bool

Source

fn visit_type(&mut self, _annotation: Type<'_>) -> bool

Source

fn visit_reference_type(&mut self, annotation: Type<'_>) -> bool

Source

fn visit_table_type(&mut self, annotation: Type<'_>) -> bool

Source

fn visit_function_type(&mut self, annotation: Type<'_>) -> bool

Source

fn visit_typeof_type(&mut self, annotation: Type<'_>) -> bool

Source

fn visit_singleton_bool_type(&mut self, annotation: Type<'_>) -> bool

Source

fn visit_singleton_string_type(&mut self, annotation: Type<'_>) -> bool

Source

fn visit_group_type(&mut self, annotation: Type<'_>) -> bool

Source

fn visit_optional_type(&mut self, annotation: Type<'_>) -> bool

Source

fn visit_union_type(&mut self, annotation: Type<'_>) -> bool

Source

fn visit_intersection_type(&mut self, annotation: Type<'_>) -> bool

Source

fn visit_error_type(&mut self, annotation: Type<'_>) -> bool

Source

fn visit_type_pack(&mut self, _annotation: TypePack<'_>) -> bool

Source

fn visit_explicit_type_pack(&mut self, annotation: TypePack<'_>) -> bool

Source

fn visit_variadic_type_pack(&mut self, annotation: TypePack<'_>) -> bool

Source

fn visit_generic_type_pack_type(&mut self, annotation: TypePack<'_>) -> bool

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§