Skip to main content

Module create_mod

Module create_mod 

Source
Expand description

ASTRegApply implementation for CreateModMutation

Creates a new module with content by:

  1. Parsing the content to extract items
  2. Registering each item under the new module path

Note: mod declarations (mod xxx;) are NOT stored here. RegistryGenerator automatically generates them from module hierarchy.

Functionsยง

create_mod_v2
Create a new module with content (V2 ASTRegistry-based)