Crate deno_ast[−][src]
Modules
Structs
Parsing diagnostic.
An implementation of swc’s Comments
that implements Sync
to support being used in multi-threaded code. This implementation
is immutable and should you need mutability you may create a copy
by converting it to an swc SingleThreadedComments
.
Parameters for parsing.
A parsed source containing an AST, comments, and possibly tokens.
Stores the source text along with other data such as where all the lines occur in the text.
Enums
Constants
Ecmascript version used for lexing and parsing.
Functions
Gets the default EsConfig
used by deno_ast
for the provided options.
Gets the default Syntax
used by deno_ast
for the provided media type.
Gets the default TsConfig
used by deno_ast
for the provided options.
Given the source text and media type, tokenizes the provided text to a collection of tokens and comments.
Parses the provided information to a module.
Parses a module with post processing (see docs on parse_program_with_post_process
).
Parses the provided information attempting to figure out if the provided text is for a script or a module.
Parses the provided information as a program with the option of providing some post-processing to the result.
Parses the provided information to a script.
Parses a script with post processing (see docs on parse_program_with_post_process
).
Type Definitions
A 1-indexed line and column type which should be used for display purposes only (ex. in diagnostics).
A 0-indexed line and column type.