Struct deno_ast::ParseParams[][src]

pub struct ParseParams {
    pub specifier: String,
    pub source: SourceTextInfo,
    pub media_type: MediaType,
    pub capture_tokens: 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.

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

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.