Struct deno_ast::ParseParams
source · [−]pub struct ParseParams {
pub specifier: String,
pub source: 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: String
Specifier of the source text.
source: SourceTextInfo
Source text stored in a SourceTextInfo
.
media_type: MediaType
Media type of the source text.
capture_tokens: bool
Whether to capture tokens or not.
scope_analysis: bool
Whether 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 RefUnwindSafe for ParseParams
impl Send for ParseParams
impl Sync for ParseParams
impl Unpin for ParseParams
impl UnwindSafe for ParseParams
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more