Struct ezno_parser::ParseOptions
source · pub struct ParseOptions {
pub jsx: bool,
pub special_jsx_attributes: bool,
pub decorators: bool,
pub comments: Comments,
pub is_expressions: bool,
pub custom_function_headers: bool,
pub slots: bool,
pub buffer_size: usize,
pub stack_size: Option<usize>,
}
Expand description
Options to customize parsing
Fields§
§jsx: bool
Parsing of JSX (includes some additions)
special_jsx_attributes: bool
Allow custom characters in JSX attributes
decorators: bool
Parses decorators on items
comments: Comments
Skip all comments from the AST
is_expressions: bool
§custom_function_headers: bool
Allows functions to be prefixed with ‘server’
slots: bool
For LSP allows incomplete AST for completions. TODO tidy up
buffer_size: usize
TODO temp for seeing how channel performs
stack_size: Option<usize>
TODO temp for seeing how channel performs
Has no effect on WASM
Implementations§
source§impl ParseOptions
impl ParseOptions
pub fn all_features() -> Self
Trait Implementations§
source§impl Clone for ParseOptions
impl Clone for ParseOptions
source§fn clone(&self) -> ParseOptions
fn clone(&self) -> ParseOptions
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Default for ParseOptions
impl Default for ParseOptions
impl Copy for ParseOptions
Auto Trait Implementations§
impl RefUnwindSafe for ParseOptions
impl Send for ParseOptions
impl Sync for ParseOptions
impl Unpin for ParseOptions
impl UnwindSafe for ParseOptions
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