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§
Sourcefn 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,
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
impl<'a> Default for &'a dyn ModuleAnalyzer
Source§fn default() -> &'a dyn ModuleAnalyzer
fn default() -> &'a dyn ModuleAnalyzer
Returns the “default value” for a type. Read more