Struct ezno_parser::ParseOptions
source · pub struct ParseOptions {
pub jsx: bool,
pub special_jsx_attributes: bool,
pub decorators: bool,
pub generator_keyword: bool,
pub include_comments: bool,
pub is_expressions: bool,
pub server_functions: bool,
pub module_functions: bool,
pub slots: bool,
}
Expand description
Settings 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
generator_keyword: bool
§include_comments: bool
Skip all comments from the AST
is_expressions: bool
§server_functions: bool
Allows functions to be prefixed with ‘server’
module_functions: bool
Allows functions to be prefixed with ‘module’
slots: bool
For LSP allows incomplete AST for completions. TODO tidy up
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