Split the declarations and scales of rpg_source.zig into rpg_source_decl_emit.zig #704

Manually merged
binjovi-bot merged 1 commit from l9-emitter-decl-split into trunk 2026-11-03 16:10:34 +00:00
Owner

Split the declarations and scales of rpg_source.zig into rpg_source_decl_emit.zig

The declarations and scales region of the Emitter in src/core/rpg_source.zig
moves to the peer module src/core/rpg_source_decl_emit.zig: collectInitialization
through procedureOf (the proved initial values, the SQL areas and folds, the
decimal positions of packed and zoned fields, declare, the unused and
dropped fields, the owner and parameter of a symbol). Also moved, because only
this region calls them: wholeParts, arrayElement and the free lineCount.

The moved bodies are unchanged; the only edits are pub on the moved functions
and on the host names and methods they use (Part, Decl, SqlStatement,
wholePart, temporal, failLine and the others the module calls). The
Emitter keeps one pub const x = decl_emit.x; alias per moved method, so every
caller in rpg_source.zig is unchanged.

No behavior change. The proof is emit-bytes-diff.sh: every emitted *.rpgle
and *.rpgle.dds is 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

{"checks":{"net_statements":0},"census":{"statuses":{"recovered":645,"partial":0,"unresolved":0},"regressions":0,"newly_recovered":0},"golden":"golden floor 173 ceiling 0 <= dump 173/5/0","emit":{"worse":[],"better":0,"newly_clean":0,"clean_delta":0,"base":317,"new":317},"twins":{"groups":462,"recovered":454,"regressions":[],"newly":0},"allgroups":{"regressions":[],"newly":[],"worse":[]},"full_check":{"exit":0,"seconds":1054}}
# Split the declarations and scales of rpg_source.zig into rpg_source_decl_emit.zig The declarations and scales region of the `Emitter` in src/core/rpg_source.zig moves to the peer module src/core/rpg_source_decl_emit.zig: `collectInitialization` through `procedureOf` (the proved initial values, the SQL areas and folds, the decimal positions of packed and zoned fields, `declare`, the unused and dropped fields, the owner and parameter of a symbol). Also moved, because only this region calls them: `wholeParts`, `arrayElement` and the free `lineCount`. The moved bodies are unchanged; the only edits are `pub` on the moved functions and on the host names and methods they use (`Part`, `Decl`, `SqlStatement`, `wholePart`, `temporal`, `failLine` and the others the module calls). The Emitter keeps one `pub const x = decl_emit.x;` alias per moved method, so every caller in rpg_source.zig is unchanged. No behavior change. The proof is `emit-bytes-diff.sh`: every emitted `*.rpgle` and `*.rpgle.dds` is 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 ``` {"checks":{"net_statements":0},"census":{"statuses":{"recovered":645,"partial":0,"unresolved":0},"regressions":0,"newly_recovered":0},"golden":"golden floor 173 ceiling 0 <= dump 173/5/0","emit":{"worse":[],"better":0,"newly_clean":0,"clean_delta":0,"base":317,"new":317},"twins":{"groups":462,"recovered":454,"regressions":[],"newly":0},"allgroups":{"regressions":[],"newly":[],"worse":[]},"full_check":{"exit":0,"seconds":1054}} ```
Split the declarations and scales of rpg_source.zig into rpg_source_decl_emit.zig
All checks were successful
binjovi/ci Binjovi completed the frozen plan
67e7610186
Move the declarations and scales region of the Emitter (collectInitialization
through procedureOf, with declare, wholeParts, arrayElement and lineCount) to a
peer module. Bodies unchanged; the Emitter keeps one pub const alias per moved
method. No behavior change: emit-bytes-diff.sh reports identical.
binjovi-bot manually merged commit 67e7610186 into trunk 2026-11-03 16:10:34 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
sean/sourcerer!704
No description provided.