Struct DefaultPostVisitor

Source
pub struct DefaultPostVisitor<T> { /* private fields */ }
Expand description

A node visitor for NodePostVisitor.

Trait Implementations§

Source§

impl<T: NodeProcessor + NodePostProcessor> NodePostVisitor<T> for DefaultPostVisitor<T>

Source§

fn visit_block(block: &mut Block, processor: &mut T)

Source§

fn visit_statement(statement: &mut Statement, processor: &mut T)

Source§

fn visit_last_statement(last_statement: &mut LastStatement, processor: &mut T)

Source§

fn visit_expression(expression: &mut Expression, processor: &mut T)

Source§

fn visit_binary_expression(binary: &mut BinaryExpression, processor: &mut T)

Source§

fn visit_number_expression(number: &mut NumberExpression, processor: &mut T)

Source§

fn visit_parenthese_expression( parenthese: &mut ParentheseExpression, processor: &mut T, )

Source§

fn visit_string_expression(string: &mut StringExpression, processor: &mut T)

Source§

fn visit_interpolated_string_expression( interpolated_string: &mut InterpolatedStringExpression, processor: &mut T, )

Source§

fn visit_unary_expression(unary: &mut UnaryExpression, processor: &mut T)

Source§

fn visit_type_cast_expression( type_cast: &mut TypeCastExpression, processor: &mut T, )

Source§

fn visit_function_expression( function: &mut FunctionExpression, processor: &mut T, )

Source§

fn visit_assign_statement(statement: &mut AssignStatement, processor: &mut T)

Source§

fn visit_do_statement(statement: &mut DoStatement, processor: &mut T)

Source§

fn visit_compound_assign( statement: &mut CompoundAssignStatement, processor: &mut T, )

Source§

fn visit_function_statement( statement: &mut FunctionStatement, processor: &mut T, )

Source§

fn visit_generic_for(statement: &mut GenericForStatement, processor: &mut T)

Source§

fn visit_if_statement(statement: &mut IfStatement, processor: &mut T)

Source§

fn visit_local_assign(statement: &mut LocalAssignStatement, processor: &mut T)

Source§

fn visit_local_function( statement: &mut LocalFunctionStatement, processor: &mut T, )

Source§

fn visit_function_variadic_type( variadic_type: &mut FunctionVariadicType, processor: &mut T, )

Source§

fn visit_generic_type_pack(generic: &mut GenericTypePack, processor: &mut T)

Source§

fn visit_numeric_for(statement: &mut NumericForStatement, processor: &mut T)

Source§

fn visit_repeat_statement(statement: &mut RepeatStatement, processor: &mut T)

Source§

fn visit_while_statement(statement: &mut WhileStatement, processor: &mut T)

Source§

fn visit_type_declaration( statement: &mut TypeDeclarationStatement, processor: &mut T, )

Source§

fn visit_variable(variable: &mut Variable, processor: &mut T)

Source§

fn visit_identifier(identifier: &mut Identifier, processor: &mut T)

Source§

fn visit_if_expression(if_expression: &mut IfExpression, processor: &mut T)

Source§

fn visit_field_expression(field: &mut FieldExpression, processor: &mut T)

Source§

fn visit_index_expression(index: &mut IndexExpression, processor: &mut T)

Source§

fn visit_function_call(call: &mut FunctionCall, processor: &mut T)

Source§

fn visit_arguments(arguments: &mut Arguments, processor: &mut T)

Source§

fn visit_table(table: &mut TableExpression, processor: &mut T)

Source§

fn visit_prefix_expression(prefix: &mut Prefix, processor: &mut T)

Source§

fn visit_type(type: &mut Type, processor: &mut T)

Source§

fn visit_type_name(type_name: &mut TypeName, processor: &mut T)

Source§

fn visit_type_field(type_field: &mut TypeField, processor: &mut T)

Source§

fn visit_array_type(array: &mut ArrayType, processor: &mut T)

Source§

fn visit_table_type(table: &mut TableType, processor: &mut T)

Source§

fn visit_expression_type( expression_type: &mut ExpressionType, processor: &mut T, )

Source§

fn visit_parenthese_type(parenthese: &mut ParentheseType, processor: &mut T)

Source§

fn visit_function_type(function: &mut FunctionType, processor: &mut T)

Source§

fn visit_optional_type(optional: &mut OptionalType, processor: &mut T)

Source§

fn visit_intersection_type( intersection: &mut IntersectionType, processor: &mut T, )

Source§

fn visit_union_type(union: &mut UnionType, processor: &mut T)

Source§

fn visit_string_type(string: &mut StringType, processor: &mut T)

Source§

fn visit_type_pack(type_pack: &mut TypePack, processor: &mut T)

Source§

fn visit_variadic_type_pack( variadic_type_pack: &mut VariadicTypePack, processor: &mut T, )

Source§

fn visit_variadic_argument_type( variadic_type: &mut VariadicArgumentType, processor: &mut T, )

Source§

fn visit_function_return_type( function_return_type: &mut FunctionReturnType, processor: &mut T, )

Auto Trait Implementations§

§

impl<T> Freeze for DefaultPostVisitor<T>

§

impl<T> RefUnwindSafe for DefaultPostVisitor<T>
where T: RefUnwindSafe,

§

impl<T> Send for DefaultPostVisitor<T>
where T: Send,

§

impl<T> Sync for DefaultPostVisitor<T>
where T: Sync,

§

impl<T> Unpin for DefaultPostVisitor<T>
where T: Unpin,

§

impl<T> UnwindSafe for DefaultPostVisitor<T>
where T: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<I, T> ExtractContext<I, ()> for T

Source§

fn extract_context(self, _original_input: I)

Given the context attached to a nom error, and given the original input to the nom parser, extract more the useful context information. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<I> RecreateContext<I> for I

Source§

fn recreate_context(_original_input: I, tail: I) -> I

Given the original input, as well as the context reported by nom, recreate a context in the original string where the error occurred. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.