lang_c::visitTrait Visit
Source pub trait Visit<'ast> {
Show 87 methods
// Provided methods
fn visit_identifier(
&mut self,
identifier: &'ast Identifier,
span: &'ast Span,
) { ... }
fn visit_constant(&mut self, constant: &'ast Constant, span: &'ast Span) { ... }
fn visit_integer(&mut self, integer: &'ast Integer, span: &'ast Span) { ... }
fn visit_integer_base(
&mut self,
integer_base: &'ast IntegerBase,
span: &'ast Span,
) { ... }
fn visit_integer_suffix(
&mut self,
integer_suffix: &'ast IntegerSuffix,
span: &'ast Span,
) { ... }
fn visit_integer_size(
&mut self,
integer_size: &'ast IntegerSize,
span: &'ast Span,
) { ... }
fn visit_float(&mut self, float: &'ast Float, span: &'ast Span) { ... }
fn visit_float_base(
&mut self,
float_base: &'ast FloatBase,
span: &'ast Span,
) { ... }
fn visit_float_suffix(
&mut self,
float_suffix: &'ast FloatSuffix,
span: &'ast Span,
) { ... }
fn visit_float_format(
&mut self,
float_format: &'ast FloatFormat,
span: &'ast Span,
) { ... }
fn visit_string_literal(
&mut self,
string_literal: &'ast StringLiteral,
span: &'ast Span,
) { ... }
fn visit_expression(
&mut self,
expression: &'ast Expression,
span: &'ast Span,
) { ... }
fn visit_member_operator(
&mut self,
member_operator: &'ast MemberOperator,
span: &'ast Span,
) { ... }
fn visit_generic_selection(
&mut self,
generic_selection: &'ast GenericSelection,
span: &'ast Span,
) { ... }
fn visit_generic_association(
&mut self,
generic_association: &'ast GenericAssociation,
span: &'ast Span,
) { ... }
fn visit_generic_association_type(
&mut self,
generic_association_type: &'ast GenericAssociationType,
span: &'ast Span,
) { ... }
fn visit_member_expression(
&mut self,
member_expression: &'ast MemberExpression,
span: &'ast Span,
) { ... }
fn visit_call_expression(
&mut self,
call_expression: &'ast CallExpression,
span: &'ast Span,
) { ... }
fn visit_compound_literal(
&mut self,
compound_literal: &'ast CompoundLiteral,
span: &'ast Span,
) { ... }
fn visit_sizeofty(&mut self, sizeofty: &'ast SizeOfTy, span: &'ast Span) { ... }
fn visit_sizeofval(&mut self, sizeofval: &'ast SizeOfVal, span: &'ast Span) { ... }
fn visit_alignof(&mut self, alignofty: &'ast AlignOf, span: &'ast Span) { ... }
fn visit_unary_operator(
&mut self,
unary_operator: &'ast UnaryOperator,
span: &'ast Span,
) { ... }
fn visit_unary_operator_expression(
&mut self,
unary_operator_expression: &'ast UnaryOperatorExpression,
span: &'ast Span,
) { ... }
fn visit_cast_expression(
&mut self,
cast_expression: &'ast CastExpression,
span: &'ast Span,
) { ... }
fn visit_binary_operator(
&mut self,
binary_operator: &'ast BinaryOperator,
span: &'ast Span,
) { ... }
fn visit_binary_operator_expression(
&mut self,
binary_operator_expression: &'ast BinaryOperatorExpression,
span: &'ast Span,
) { ... }
fn visit_conditional_expression(
&mut self,
conditional_expression: &'ast ConditionalExpression,
span: &'ast Span,
) { ... }
fn visit_va_arg_expression(
&mut self,
va_arg_expression: &'ast VaArgExpression,
span: &'ast Span,
) { ... }
fn visit_offset_of_expression(
&mut self,
offset_of_expression: &'ast OffsetOfExpression,
span: &'ast Span,
) { ... }
fn visit_offset_designator(
&mut self,
offset_designator: &'ast OffsetDesignator,
span: &'ast Span,
) { ... }
fn visit_offset_member(
&mut self,
offset_member: &'ast OffsetMember,
span: &'ast Span,
) { ... }
fn visit_declaration(
&mut self,
declaration: &'ast Declaration,
span: &'ast Span,
) { ... }
fn visit_declaration_specifier(
&mut self,
declaration_specifier: &'ast DeclarationSpecifier,
span: &'ast Span,
) { ... }
fn visit_init_declarator(
&mut self,
init_declarator: &'ast InitDeclarator,
span: &'ast Span,
) { ... }
fn visit_storage_class_specifier(
&mut self,
storage_class_specifier: &'ast StorageClassSpecifier,
span: &'ast Span,
) { ... }
fn visit_type_specifier(
&mut self,
type_specifier: &'ast TypeSpecifier,
span: &'ast Span,
) { ... }
fn visit_ts18661_float_type(
&mut self,
ts18661_float_type: &'ast TS18661FloatType,
span: &'ast Span,
) { ... }
fn visit_ts18661_float_format(
&mut self,
ts18661_float_format: &'ast TS18661FloatFormat,
span: &'ast Span,
) { ... }
fn visit_struct_type(
&mut self,
struct_type: &'ast StructType,
span: &'ast Span,
) { ... }
fn visit_struct_kind(
&mut self,
struct_kind: &'ast StructKind,
span: &'ast Span,
) { ... }
fn visit_struct_declaration(
&mut self,
struct_declaration: &'ast StructDeclaration,
span: &'ast Span,
) { ... }
fn visit_struct_field(
&mut self,
struct_field: &'ast StructField,
span: &'ast Span,
) { ... }
fn visit_specifier_qualifier(
&mut self,
specifier_qualifier: &'ast SpecifierQualifier,
span: &'ast Span,
) { ... }
fn visit_struct_declarator(
&mut self,
struct_declarator: &'ast StructDeclarator,
span: &'ast Span,
) { ... }
fn visit_enum_type(&mut self, enum_type: &'ast EnumType, span: &'ast Span) { ... }
fn visit_enumerator(
&mut self,
enumerator: &'ast Enumerator,
span: &'ast Span,
) { ... }
fn visit_type_qualifier(
&mut self,
type_qualifier: &'ast TypeQualifier,
span: &'ast Span,
) { ... }
fn visit_function_specifier(
&mut self,
function_specifier: &'ast FunctionSpecifier,
span: &'ast Span,
) { ... }
fn visit_alignment_specifier(
&mut self,
alignment_specifier: &'ast AlignmentSpecifier,
span: &'ast Span,
) { ... }
fn visit_declarator(
&mut self,
declarator: &'ast Declarator,
span: &'ast Span,
) { ... }
fn visit_declarator_kind(
&mut self,
declarator_kind: &'ast DeclaratorKind,
span: &'ast Span,
) { ... }
fn visit_derived_declarator(
&mut self,
derived_declarator: &'ast DerivedDeclarator,
span: &'ast Span,
) { ... }
fn visit_array_declarator(
&mut self,
array_declarator: &'ast ArrayDeclarator,
span: &'ast Span,
) { ... }
fn visit_function_declarator(
&mut self,
function_declarator: &'ast FunctionDeclarator,
span: &'ast Span,
) { ... }
fn visit_pointer_qualifier(
&mut self,
pointer_qualifier: &'ast PointerQualifier,
span: &'ast Span,
) { ... }
fn visit_array_size(
&mut self,
array_size: &'ast ArraySize,
span: &'ast Span,
) { ... }
fn visit_parameter_declaration(
&mut self,
parameter_declaration: &'ast ParameterDeclaration,
span: &'ast Span,
) { ... }
fn visit_ellipsis(&mut self, ellipsis: &'ast Ellipsis, span: &'ast Span) { ... }
fn visit_type_name(&mut self, type_name: &'ast TypeName, span: &'ast Span) { ... }
fn visit_initializer(
&mut self,
initializer: &'ast Initializer,
span: &'ast Span,
) { ... }
fn visit_initializer_list_item(
&mut self,
initializer_list_item: &'ast InitializerListItem,
span: &'ast Span,
) { ... }
fn visit_designator(
&mut self,
designator: &'ast Designator,
span: &'ast Span,
) { ... }
fn visit_range_designator(
&mut self,
range_designator: &'ast RangeDesignator,
span: &'ast Span,
) { ... }
fn visit_static_assert(
&mut self,
static_assert: &'ast StaticAssert,
span: &'ast Span,
) { ... }
fn visit_statement(&mut self, statement: &'ast Statement, span: &'ast Span) { ... }
fn visit_labeled_statement(
&mut self,
labeled_statement: &'ast LabeledStatement,
span: &'ast Span,
) { ... }
fn visit_if_statement(
&mut self,
if_statement: &'ast IfStatement,
span: &'ast Span,
) { ... }
fn visit_switch_statement(
&mut self,
switch_statement: &'ast SwitchStatement,
span: &'ast Span,
) { ... }
fn visit_while_statement(
&mut self,
while_statement: &'ast WhileStatement,
span: &'ast Span,
) { ... }
fn visit_do_while_statement(
&mut self,
do_while_statement: &'ast DoWhileStatement,
span: &'ast Span,
) { ... }
fn visit_for_statement(
&mut self,
for_statement: &'ast ForStatement,
span: &'ast Span,
) { ... }
fn visit_label(&mut self, label: &'ast Label, span: &'ast Span) { ... }
fn visit_case_range(&mut self, range: &'ast CaseRange, span: &'ast Span) { ... }
fn visit_for_initializer(
&mut self,
for_initializer: &'ast ForInitializer,
span: &'ast Span,
) { ... }
fn visit_block_item(
&mut self,
block_item: &'ast BlockItem,
span: &'ast Span,
) { ... }
fn visit_translation_unit(
&mut self,
translation_unit: &'ast TranslationUnit,
) { ... }
fn visit_external_declaration(
&mut self,
external_declaration: &'ast ExternalDeclaration,
span: &'ast Span,
) { ... }
fn visit_function_definition(
&mut self,
function_definition: &'ast FunctionDefinition,
span: &'ast Span,
) { ... }
fn visit_extension(&mut self, extension: &'ast Extension, span: &'ast Span) { ... }
fn visit_attribute(&mut self, attribute: &'ast Attribute, span: &'ast Span) { ... }
fn visit_asm_statement(
&mut self,
asm_statement: &'ast AsmStatement,
span: &'ast Span,
) { ... }
fn visit_availability_attribute(
&mut self,
availability: &'ast AvailabilityAttribute,
span: &'ast Span,
) { ... }
fn visit_availability_clause(
&mut self,
_clause: &'ast AvailabilityClause,
_span: &'ast Span,
) { ... }
fn visit_gnu_extended_asm_statement(
&mut self,
gnu_extended_asm_statement: &'ast GnuExtendedAsmStatement,
span: &'ast Span,
) { ... }
fn visit_gnu_asm_operand(
&mut self,
gnu_asm_operand: &'ast GnuAsmOperand,
span: &'ast Span,
) { ... }
fn visit_type_of(&mut self, type_of: &'ast TypeOf, span: &'ast Span) { ... }
}