Split the declarations and scales of rpg_source.zig into rpg_source_decl_emit.zig #704
Loading…
Reference in a new issue
No description provided.
Delete branch "l9-emitter-decl-split"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Split the declarations and scales of rpg_source.zig into rpg_source_decl_emit.zig
The declarations and scales region of the
Emitterin src/core/rpg_source.zigmoves to the peer module src/core/rpg_source_decl_emit.zig:
collectInitializationthrough
procedureOf(the proved initial values, the SQL areas and folds, thedecimal positions of packed and zoned fields,
declare, the unused anddropped fields, the owner and parameter of a symbol). Also moved, because only
this region calls them:
wholeParts,arrayElementand the freelineCount.The moved bodies are unchanged; the only edits are
pubon the moved functionsand on the host names and methods they use (
Part,Decl,SqlStatement,wholePart,temporal,failLineand the others the module calls). TheEmitter keeps one
pub const x = decl_emit.x;alias per moved method, so everycaller in rpg_source.zig is unchanged.
No behavior change. The proof is
emit-bytes-diff.sh: every emitted*.rpgleand
*.rpgle.ddsis byte-identical, and the forms.ndjson projection is equal,for the merge-base binary and this commit's binary on the same data tree.
Gates