pub fn create_mod_v2(
ctx: &mut AnalysisContext,
parent: &SymbolPath,
mod_name: &str,
content: &str,
is_pub: bool,
) -> ExecutionResultExpand description
Create a new module with content (V2 ASTRegistry-based)
This operation:
- Parses the content to extract items
- Registers each item under
parent::mod_name::item_name - Adds a mod declaration (
mod xxx;orpub mod xxx;) to the parent