Trait glsl_lang::visitor::VisitorMut

source ·
pub trait VisitorMut {
Show 62 methods // Provided methods fn visit_translation_unit(&mut self, _: &mut TranslationUnit) -> Visit { ... } fn visit_external_declaration( &mut self, _: &mut ExternalDeclaration, ) -> Visit { ... } fn visit_identifier(&mut self, _: &mut Identifier) -> Visit { ... } fn visit_arrayed_identifier(&mut self, _: &mut ArrayedIdentifier) -> Visit { ... } fn visit_type_name(&mut self, _: &mut TypeName) -> Visit { ... } fn visit_block(&mut self, _: &mut Block) -> Visit { ... } fn visit_for_init_statement(&mut self, _: &mut ForInitStatement) -> Visit { ... } fn visit_for_rest_statement(&mut self, _: &mut ForRestStatement) -> Visit { ... } fn visit_function_definition(&mut self, _: &mut FunctionDefinition) -> Visit { ... } fn visit_function_parameter_declarator( &mut self, _: &mut FunctionParameterDeclarator, ) -> Visit { ... } fn visit_function_prototype(&mut self, _: &mut FunctionPrototype) -> Visit { ... } fn visit_init_declarator_list( &mut self, _: &mut InitDeclaratorList, ) -> Visit { ... } fn visit_layout_qualifier(&mut self, _: &mut LayoutQualifier) -> Visit { ... } fn visit_preprocessor(&mut self, _: &mut Preprocessor) -> Visit { ... } fn visit_preprocessor_define(&mut self, _: &mut PreprocessorDefine) -> Visit { ... } fn visit_preprocessor_elseif(&mut self, _: &mut PreprocessorElseIf) -> Visit { ... } fn visit_preprocessor_error(&mut self, _: &mut PreprocessorError) -> Visit { ... } fn visit_preprocessor_extension( &mut self, _: &mut PreprocessorExtension, ) -> Visit { ... } fn visit_preprocessor_extension_behavior( &mut self, _: &mut PreprocessorExtensionBehavior, ) -> Visit { ... } fn visit_preprocessor_extension_name( &mut self, _: &mut PreprocessorExtensionName, ) -> Visit { ... } fn visit_preprocessor_if(&mut self, _: &mut PreprocessorIf) -> Visit { ... } fn visit_preprocessor_ifdef(&mut self, _: &mut PreprocessorIfDef) -> Visit { ... } fn visit_preprocessor_ifndef(&mut self, _: &mut PreprocessorIfNDef) -> Visit { ... } fn visit_preprocessor_include( &mut self, _: &mut PreprocessorInclude, ) -> Visit { ... } fn visit_preprocessor_line(&mut self, _: &mut PreprocessorLine) -> Visit { ... } fn visit_preprocessor_pragma(&mut self, _: &mut PreprocessorPragma) -> Visit { ... } fn visit_preprocessor_undef(&mut self, _: &mut PreprocessorUndef) -> Visit { ... } fn visit_preprocessor_version( &mut self, _: &mut PreprocessorVersion, ) -> Visit { ... } fn visit_preprocessor_version_profile( &mut self, _: &mut PreprocessorVersionProfile, ) -> Visit { ... } fn visit_selection_statement(&mut self, _: &mut SelectionStatement) -> Visit { ... } fn visit_selection_rest_statement( &mut self, _: &mut SelectionRestStatement, ) -> Visit { ... } fn visit_single_declaration(&mut self, _: &mut SingleDeclaration) -> Visit { ... } fn visit_single_declaration_no_type( &mut self, _: &mut SingleDeclarationNoType, ) -> Visit { ... } fn visit_struct_field_specifier( &mut self, _: &mut StructFieldSpecifier, ) -> Visit { ... } fn visit_struct_specifier(&mut self, _: &mut StructSpecifier) -> Visit { ... } fn visit_switch_statement(&mut self, _: &mut SwitchStatement) -> Visit { ... } fn visit_type_qualifier(&mut self, _: &mut TypeQualifier) -> Visit { ... } fn visit_type_specifier(&mut self, _: &mut TypeSpecifier) -> Visit { ... } fn visit_full_specified_type(&mut self, _: &mut FullySpecifiedType) -> Visit { ... } fn visit_array_specifier(&mut self, _: &mut ArraySpecifier) -> Visit { ... } fn visit_array_specifier_dimension( &mut self, _: &mut ArraySpecifierDimension, ) -> Visit { ... } fn visit_assignment_op(&mut self, _: &mut AssignmentOp) -> Visit { ... } fn visit_binary_op(&mut self, _: &mut BinaryOp) -> Visit { ... } fn visit_case_label(&mut self, _: &mut CaseLabel) -> Visit { ... } fn visit_condition(&mut self, _: &mut Condition) -> Visit { ... } fn visit_declaration(&mut self, _: &mut Declaration) -> Visit { ... } fn visit_expr(&mut self, _: &mut Expr) -> Visit { ... } fn visit_fun_identifier(&mut self, _: &mut FunIdentifier) -> Visit { ... } fn visit_function_parameter_declaration( &mut self, _: &mut FunctionParameterDeclaration, ) -> Visit { ... } fn visit_initializer(&mut self, _: &mut Initializer) -> Visit { ... } fn visit_interpolation_qualifier( &mut self, _: &mut InterpolationQualifier, ) -> Visit { ... } fn visit_iteration_statement(&mut self, _: &mut IterationStatement) -> Visit { ... } fn visit_jump_statement(&mut self, _: &mut JumpStatement) -> Visit { ... } fn visit_layout_qualifier_spec( &mut self, _: &mut LayoutQualifierSpec, ) -> Visit { ... } fn visit_precision_qualifier(&mut self, _: &mut PrecisionQualifier) -> Visit { ... } fn visit_statement(&mut self, _: &mut Statement) -> Visit { ... } fn visit_compound_statement(&mut self, _: &mut CompoundStatement) -> Visit { ... } fn visit_storage_qualifier(&mut self, _: &mut StorageQualifier) -> Visit { ... } fn visit_type_qualifier_spec(&mut self, _: &mut TypeQualifierSpec) -> Visit { ... } fn visit_type_specifier_non_array( &mut self, _: &mut TypeSpecifierNonArray, ) -> Visit { ... } fn visit_unary_op(&mut self, _: &mut UnaryOp) -> Visit { ... } fn visit_expr_statement(&mut self, _: &mut ExprStatement) -> Visit { ... }
}
Expand description

Visitor object, visiting AST nodes.

This trait exists in two flavors, depending on whether you want to mutate the AST or not: Visitor doesn’t allow for mutation while VisitorMut does.

Provided Methods§

source

fn visit_translation_unit(&mut self, _: &mut TranslationUnit) -> Visit

source

fn visit_external_declaration(&mut self, _: &mut ExternalDeclaration) -> Visit

source

fn visit_identifier(&mut self, _: &mut Identifier) -> Visit

source

fn visit_arrayed_identifier(&mut self, _: &mut ArrayedIdentifier) -> Visit

source

fn visit_type_name(&mut self, _: &mut TypeName) -> Visit

source

fn visit_block(&mut self, _: &mut Block) -> Visit

source

fn visit_for_init_statement(&mut self, _: &mut ForInitStatement) -> Visit

source

fn visit_for_rest_statement(&mut self, _: &mut ForRestStatement) -> Visit

source

fn visit_function_definition(&mut self, _: &mut FunctionDefinition) -> Visit

source

fn visit_function_parameter_declarator( &mut self, _: &mut FunctionParameterDeclarator, ) -> Visit

source

fn visit_function_prototype(&mut self, _: &mut FunctionPrototype) -> Visit

source

fn visit_init_declarator_list(&mut self, _: &mut InitDeclaratorList) -> Visit

source

fn visit_layout_qualifier(&mut self, _: &mut LayoutQualifier) -> Visit

source

fn visit_preprocessor(&mut self, _: &mut Preprocessor) -> Visit

source

fn visit_preprocessor_define(&mut self, _: &mut PreprocessorDefine) -> Visit

source

fn visit_preprocessor_elseif(&mut self, _: &mut PreprocessorElseIf) -> Visit

source

fn visit_preprocessor_error(&mut self, _: &mut PreprocessorError) -> Visit

source

fn visit_preprocessor_extension( &mut self, _: &mut PreprocessorExtension, ) -> Visit

source

fn visit_preprocessor_extension_behavior( &mut self, _: &mut PreprocessorExtensionBehavior, ) -> Visit

source

fn visit_preprocessor_extension_name( &mut self, _: &mut PreprocessorExtensionName, ) -> Visit

source

fn visit_preprocessor_if(&mut self, _: &mut PreprocessorIf) -> Visit

source

fn visit_preprocessor_ifdef(&mut self, _: &mut PreprocessorIfDef) -> Visit

source

fn visit_preprocessor_ifndef(&mut self, _: &mut PreprocessorIfNDef) -> Visit

source

fn visit_preprocessor_include(&mut self, _: &mut PreprocessorInclude) -> Visit

source

fn visit_preprocessor_line(&mut self, _: &mut PreprocessorLine) -> Visit

source

fn visit_preprocessor_pragma(&mut self, _: &mut PreprocessorPragma) -> Visit

source

fn visit_preprocessor_undef(&mut self, _: &mut PreprocessorUndef) -> Visit

source

fn visit_preprocessor_version(&mut self, _: &mut PreprocessorVersion) -> Visit

source

fn visit_preprocessor_version_profile( &mut self, _: &mut PreprocessorVersionProfile, ) -> Visit

source

fn visit_selection_statement(&mut self, _: &mut SelectionStatement) -> Visit

source

fn visit_selection_rest_statement( &mut self, _: &mut SelectionRestStatement, ) -> Visit

source

fn visit_single_declaration(&mut self, _: &mut SingleDeclaration) -> Visit

source

fn visit_single_declaration_no_type( &mut self, _: &mut SingleDeclarationNoType, ) -> Visit

source

fn visit_struct_field_specifier( &mut self, _: &mut StructFieldSpecifier, ) -> Visit

source

fn visit_struct_specifier(&mut self, _: &mut StructSpecifier) -> Visit

source

fn visit_switch_statement(&mut self, _: &mut SwitchStatement) -> Visit

source

fn visit_type_qualifier(&mut self, _: &mut TypeQualifier) -> Visit

source

fn visit_type_specifier(&mut self, _: &mut TypeSpecifier) -> Visit

source

fn visit_full_specified_type(&mut self, _: &mut FullySpecifiedType) -> Visit

source

fn visit_array_specifier(&mut self, _: &mut ArraySpecifier) -> Visit

source

fn visit_array_specifier_dimension( &mut self, _: &mut ArraySpecifierDimension, ) -> Visit

source

fn visit_assignment_op(&mut self, _: &mut AssignmentOp) -> Visit

source

fn visit_binary_op(&mut self, _: &mut BinaryOp) -> Visit

source

fn visit_case_label(&mut self, _: &mut CaseLabel) -> Visit

source

fn visit_condition(&mut self, _: &mut Condition) -> Visit

source

fn visit_declaration(&mut self, _: &mut Declaration) -> Visit

source

fn visit_expr(&mut self, _: &mut Expr) -> Visit

source

fn visit_fun_identifier(&mut self, _: &mut FunIdentifier) -> Visit

source

fn visit_function_parameter_declaration( &mut self, _: &mut FunctionParameterDeclaration, ) -> Visit

source

fn visit_initializer(&mut self, _: &mut Initializer) -> Visit

source

fn visit_interpolation_qualifier( &mut self, _: &mut InterpolationQualifier, ) -> Visit

source

fn visit_iteration_statement(&mut self, _: &mut IterationStatement) -> Visit

source

fn visit_jump_statement(&mut self, _: &mut JumpStatement) -> Visit

source

fn visit_layout_qualifier_spec(&mut self, _: &mut LayoutQualifierSpec) -> Visit

source

fn visit_precision_qualifier(&mut self, _: &mut PrecisionQualifier) -> Visit

source

fn visit_statement(&mut self, _: &mut Statement) -> Visit

source

fn visit_compound_statement(&mut self, _: &mut CompoundStatement) -> Visit

source

fn visit_storage_qualifier(&mut self, _: &mut StorageQualifier) -> Visit

source

fn visit_type_qualifier_spec(&mut self, _: &mut TypeQualifierSpec) -> Visit

source

fn visit_type_specifier_non_array( &mut self, _: &mut TypeSpecifierNonArray, ) -> Visit

source

fn visit_unary_op(&mut self, _: &mut UnaryOp) -> Visit

source

fn visit_expr_statement(&mut self, _: &mut ExprStatement) -> Visit

Implementors§