Trait deno_graph::ModuleAnalyzer

source ·
pub trait ModuleAnalyzer {
    // Required method
    fn analyze<'life0, 'life1, 'async_trait>(
        &'life0 self,
        specifier: &'life1 ModuleSpecifier,
        source: Arc<str>,
        media_type: MediaType
    ) -> Pin<Box<dyn Future<Output = Result<ModuleInfo, ParseDiagnostic>> + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}
Expand description

Analyzes the provided module.

It can be assumed that the source has not changed since it was loaded by deno_graph.

Required Methods§

source

fn analyze<'life0, 'life1, 'async_trait>( &'life0 self, specifier: &'life1 ModuleSpecifier, source: Arc<str>, media_type: MediaType ) -> Pin<Box<dyn Future<Output = Result<ModuleInfo, ParseDiagnostic>> + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Analyzes the module.

Trait Implementations§

source§

impl<'a> Default for &'a dyn ModuleAnalyzer

source§

fn default() -> &'a dyn ModuleAnalyzer

Returns the “default value” for a type. Read more

Implementors§