pub trait ParsedSourceStore {
    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

Sets the parsed source, potentially returning the previous value.

Implementors