pub struct ScopeVisitor;
Expand description

A visitor that can be used only with a NodeProcessor that also implements the Scope trait.

Trait Implementations§

source§

impl<T: NodeProcessor + Scope> NodeVisitor<T> for ScopeVisitor

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

fn visit_expression(expression: &mut Expression, 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_if_statement(statement: &mut IfStatement, processor: &mut T)

source§

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

source§

fn visit_variable(variable: &mut Variable, 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)

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

source§

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

Mutably borrows from an owned value. Read more
§

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

§

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 Twhere 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.

§

impl<I> RecreateContext<I> for I

§

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 Twhere U: Into<T>,

§

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 Twhere U: TryFrom<T>,

§

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.