Struct deno_ast::ParsedSource
source · [−]pub struct ParsedSource { /* private fields */ }
Expand description
A parsed source containing an AST, comments, and possibly tokens.
Note: This struct is cheap to clone.
Implementations
Gets the media type of the module.
Gets the text content of the module.
Gets the parsed program as a reference.
Gets the parsed module.
This will panic if the source is not a module.
Gets the parsed script.
This will panic if the source is not a script.
Gets the comments found in the source file.
Get the source’s leading comments, where triple slash directives might be located.
Gets the tokens found in the source file.
This will panic if tokens were not captured during parsing.
Gets the top level context used when parsing with scope analysis.
This will panic if the source was not parsed with scope analysis.
Gets extra non-fatal diagnostics found while parsing.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for ParsedSource
impl Send for ParsedSource
impl Sync for ParsedSource
impl Unpin for ParsedSource
impl UnwindSafe for ParsedSource
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more