Struct ezno_parser::VisitSettings
source · pub struct VisitSettings {
pub reverse_statements: bool,
pub visit_function_bodies: bool,
}
Expand description
Options for behavior when visiting AST. Customizable behavior is important for analysis
Fields§
§reverse_statements: bool
Visits statements in reverse, e.g
const x = 2;
const y = 3;
If reverse_statements
is true will visit the const y = 3
statement first
visit_function_bodies: bool
Will not visit parameters and statements in functions. This includes arrow functions
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for VisitSettings
impl Send for VisitSettings
impl Sync for VisitSettings
impl Unpin for VisitSettings
impl UnwindSafe for VisitSettings
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