diff --git a/src/protocol/parser/mod.rs b/src/protocol/parser/mod.rs index 935ccdcc7d7b7b3e50bc31fbeb2cef2f96d7faff..4688c9fe5e963e7877606b9384ae685762c2521c 100644 --- a/src/protocol/parser/mod.rs +++ b/src/protocol/parser/mod.rs @@ -8,6 +8,7 @@ pub(crate) mod pass_imports; pub(crate) mod pass_definitions; pub(crate) mod pass_definitions_types; pub(crate) mod pass_validation_linking; +pub(crate) mod pass_rewriting; pub(crate) mod pass_typing; mod visitor; @@ -36,6 +37,7 @@ pub enum ModuleCompilationPhase { DefinitionsParsed, // produced the AST for the entire module TypesAddedToTable, // added all definitions to the type table ValidatedAndLinked, // AST is traversed and has linked the required AST nodes + Rewritten, // Special AST nodes are rewritten into regular AST nodes // When we continue with the compiler: // Typed, // Type inference and checking has been performed }