Struct deno_ast::ParseParams
source · pub struct ParseParams {
pub specifier: ModuleSpecifier,
pub text_info: SourceTextInfo,
pub media_type: MediaType,
pub capture_tokens: bool,
pub scope_analysis: bool,
pub maybe_syntax: Option<Syntax>,
}Expand description
Parameters for parsing.
Fields§
§specifier: ModuleSpecifierSpecifier of the source text.
text_info: SourceTextInfoSource text stored in a SourceTextInfo.
media_type: MediaTypeMedia type of the source text.
capture_tokens: boolWhether to capture tokens or not.
scope_analysis: boolWhether to apply swc’s scope analysis.
maybe_syntax: Option<Syntax>Syntax to use when parsing.
deno_ast will get a default Syntax to use based on the
media type, but you may use this to provide a custom Syntax.
Auto Trait Implementations§
impl Freeze for ParseParams
impl RefUnwindSafe for ParseParams
impl Send for ParseParams
impl Sync for ParseParams
impl Unpin for ParseParams
impl UnwindSafe for ParseParams
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