Crate deno_graph

Source

Re-exports§

pub use source::NpmResolvePkgReqsResult;

Modules§

packages
source
symbols

Structs§

BuildFastCheckTypeGraphOptions
BuildOptions
CapturingEsParser
Stores parsed files in the provided store after parsing. in a provided store. Parses that match the previous one will be cached.
CapturingModuleAnalyzer
Helper struct for creating a single object that implements deno_graph::ModuleAnalyzer, deno_graph::EsParser, and deno_graph::ParsedSourceStore. All parses will be captured to prevent them from occuring more than one time.
DefaultEsParser
DefaultModuleAnalyzer
DefaultParsedSourceStore
Default store that works on a single thread.
Dependency
DynamicDependencyDescriptor
ExternalModule
Represents a module which is not statically analyzed and is only available at runtime. It is up to the implementor to ensure that the module is loaded and available as a dependency. The module does not contain source code and will have no dependencies.
FastCheckCacheItem
FastCheckCacheKey
Cache key that’s a hash of the package name, version, and sorted export names.
FastCheckCacheModuleItemDiagnostic
FastCheckCacheModuleItemInfo
FastCheckDiagnosticRange
FastCheckModule
FastCheckTypeModule
FillFromLockfileOptions
GraphImport
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.
Import
JsDocImportInfo
JsModule
JsonModule
ModuleGraph
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.
ModuleInfo
Information about JS/TS module.
NpmModule
An npm package entrypoint.
ParseModuleFromAstOptions
ParseModuleOptions
ParseOptions
ParserModuleAnalyzer
Default module analyzer that analyzes based on a deno_ast::ParsedSource.
Position
PositionRange
Range
ReferrerImports
ResolutionResolved
SpecifierWithRange
StaticDependencyDescriptor
TypesDependency
WalkOptions
WasmModule
WorkspaceMember

Enums§

CheckJsOption
DependencyDescriptor
DynamicArgument
DynamicTemplatePart
FastCheckCacheModuleItem
FastCheckDiagnostic
FastCheckTypeModuleSlot
GraphKind
The kind of module graph.
ImportAttribute
ImportAttributes
ImportKind
JsrLoadError
MediaType
Module
ModuleEntryRef
ModuleError
ModuleGraphError
ModuleLoadError
NpmLoadError
Resolution
ResolutionError
SpecifierError
StaticDependencyKind
TypeScriptReference
WorkspaceFastCheckOption

Traits§

CheckJsResolver
EsParser
Parses programs to a ParsedSource.
Executor
An executor for futures.
FastCheckCache
Cache for storing the results of fast checks based on a package.
ModuleAnalyzer
Analyzes the provided module.
ParsedSourceStore
Stores parsed sources.

Functions§

parse_module
Parse an individual module, returning the module as a result, otherwise erroring with a module graph error.
parse_module_from_ast
Parse an individual module from an AST, returning the module.
resolve_import
Given a specifier string and a referring module specifier, try to resolve the target module specifier, erroring if it cannot be resolved.

Type Aliases§

ModuleSpecifier