Module golem_wasm_ast::analysis
source · Expand description
The analysis module contains functionality built on top of the WASM AST to analyze components.
Currently the only functionality it provides is gathering a concise representation of all the exported instances and functions with their signatures.
For this analysis first parse a component::Component with component::Component::from_bytes, then create an analysis::AnalysisContext with analysis::AnalysisContext::new and finally call analysis::AnalysisContext::get_top_level_exports on the newly created context.
This module is optional and can be enabled with the analysis
feature flag. It is enabled by default.