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