Struct darklua_core::process::ScopeVisitor
source · 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
impl<T: NodeProcessor + Scope> NodeVisitor<T> for ScopeVisitor
fn visit_block(block: &mut Block, scope: &mut T)
fn visit_local_assign(statement: &mut LocalAssignStatement, scope: &mut T)
fn visit_function_expression(function: &mut FunctionExpression, scope: &mut T)
fn visit_function_statement(statement: &mut FunctionStatement, scope: &mut T)
fn visit_local_function(statement: &mut LocalFunctionStatement, scope: &mut T)
fn visit_generic_for(statement: &mut GenericForStatement, scope: &mut T)
fn visit_numeric_for(statement: &mut NumericForStatement, scope: &mut T)
fn visit_repeat_statement(statement: &mut RepeatStatement, scope: &mut T)
fn visit_statement(statement: &mut Statement, processor: &mut T)
fn visit_expression(expression: &mut Expression, processor: &mut T)
fn visit_assign_statement(statement: &mut AssignStatement, processor: &mut T)
fn visit_do_statement(statement: &mut DoStatement, processor: &mut T)
fn visit_compound_assign( statement: &mut CompoundAssignStatement, processor: &mut T )
fn visit_if_statement(statement: &mut IfStatement, processor: &mut T)
fn visit_while_statement(statement: &mut WhileStatement, processor: &mut T)
fn visit_variable(variable: &mut Variable, processor: &mut T)
fn visit_if_expression(if_expression: &mut IfExpression, processor: &mut T)
fn visit_field_expression(field: &mut FieldExpression, processor: &mut T)
fn visit_index_expression(index: &mut IndexExpression, processor: &mut T)
fn visit_function_call(call: &mut FunctionCall, processor: &mut T)
fn visit_arguments(arguments: &mut Arguments, processor: &mut T)
fn visit_table(table: &mut TableExpression, processor: &mut T)
fn visit_prefix_expression(prefix: &mut Prefix, processor: &mut T)
Auto Trait Implementations§
impl RefUnwindSafe for ScopeVisitor
impl Send for ScopeVisitor
impl Sync for ScopeVisitor
impl Unpin for ScopeVisitor
impl UnwindSafe for ScopeVisitor
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<I, T> ExtractContext<I, ()> for T
impl<I, T> ExtractContext<I, ()> for T
§fn extract_context(self, _original_input: I)
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
§impl<I> RecreateContext<I> for I
impl<I> RecreateContext<I> for I
§fn recreate_context(_original_input: I, tail: I) -> 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