Trait deno_graph::ParsedSourceStore
source · pub trait ParsedSourceStore {
// Required methods
fn set_parsed_source(
&self,
specifier: ModuleSpecifier,
parsed_source: ParsedSource
) -> Option<ParsedSource>;
fn get_parsed_source(
&self,
specifier: &ModuleSpecifier
) -> Option<ParsedSource>;
}Expand description
Stores parsed sources.
Note: This interface is racy and not thread safe, as it’s assumed it will only store the latest changes or that the source text will never change.
Required Methods§
sourcefn set_parsed_source(
&self,
specifier: ModuleSpecifier,
parsed_source: ParsedSource
) -> Option<ParsedSource>
fn set_parsed_source( &self, specifier: ModuleSpecifier, parsed_source: ParsedSource ) -> Option<ParsedSource>
Sets the parsed source, potentially returning the previous value.