pub trait EcmascriptAnalyzable:
Module
+ Asset
+ Send
+ Sync
+ NonLocalValue
+ ValueDebug {
// Required methods
fn analyze(self: Vc<Self>) -> Vc<AnalyzeEcmascriptModuleResult>
where Self: Sized;
fn module_content_without_analysis(
self: Vc<Self>,
generate_source_map: bool,
) -> Vc<EcmascriptModuleContent>
where Self: Sized;
fn module_content_options(
self: Vc<Self>,
module_graph: Vc<ModuleGraph>,
chunking_context: Vc<Box<dyn ChunkingContext>>,
async_module_info: Option<Vc<AsyncModuleInfo>>,
) -> Vc<EcmascriptModuleContentOptions>
where Self: Sized;
// Provided method
fn module_content(
self: Vc<Self>,
module_graph: Vc<ModuleGraph>,
chunking_context: Vc<Box<dyn ChunkingContext>>,
async_module_info: Option<Vc<AsyncModuleInfo>>,
) -> Vc<EcmascriptModuleContent>
where Self: Sized { ... }
}
Required Methods§
fn analyze(self: Vc<Self>) -> Vc<AnalyzeEcmascriptModuleResult>where
Self: Sized,
Sourcefn module_content_without_analysis(
self: Vc<Self>,
generate_source_map: bool,
) -> Vc<EcmascriptModuleContent>where
Self: Sized,
fn module_content_without_analysis(
self: Vc<Self>,
generate_source_map: bool,
) -> Vc<EcmascriptModuleContent>where
Self: Sized,
Generates module contents without an analysis pass. This is useful for transforming code that is not a module, e.g. runtime code.