Crate deno_graph

source ·

Modules

Structs

Helper struct for creating a single object that implements deno_graph::ModuleAnalyzer, deno_graph::ModuleParser, and deno_graph::ParsedSourceStore. All parses will be captured to prevent them from occuring more than one time.
Stores parsed files in the provided store after parsing. in a provided store. Parses that match the previous one will be cached.
Default module analyzer that analyzes based on a deno_ast::ParsedSource.
Default parser that parses using only settings necessary for deno_graph to analyze the modules.
Default store that works on a single thread.
Provides a way for imports, through configuration, to be imported to the module graph without requiring the dependencies to be analyzed. This is intended to be used for importing type dependencies or other externally defined dependencies, like JSX runtimes.
The structure which represents a module graph, which can be serialized as well as “printed”. The roots of the graph represent the “starting” point which can be located in the module “slots” in the graph. The graph also contains any redirects where the requested module specifier was redirected to another module specifier when being loaded.
Information about the module.

Enums

Traits

Analyzes the provided module.
Parses modules to a ParsedSource.
Stores parsed sources.

Functions

Searches comments for any @deno-types compiler hints.
Parse an individual module, returning the module as a result, otherwise erroring with a module graph error.
Parse an individual module from an AST, returning the module.
Given a specifier string and a referring module specifier, try to resolve the target module specifier, erroring if it cannot be resolved.

Type Definitions