Repository navigation
Line map: MappedLine / line_map live in core.cobol_preprocessor (Part of #5648) - #5875
Conversation
…map; translator Line extends it (Part of #5648) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
No description provided. |
|
PR #5875 @ ed32a29: 1 failed check(s) == shard 4 (1666524 LOC) (failure) -- real |
|
No description provided. |
Part of #5648 (slice 7: the line map).
What
core.cobol_preprocessorgainsMappedLine(text, file, 1-based line;origin=file:line,short_origin=CUSTREC.cpy:12) andline_map(lines)(entry i = (file, line) of expanded line i). The translator'sLinenow extendsMappedLineand keeps only its column-72 bookkeeping (cut,lost,lost_after,lost_joined);expand()builds its COPY error location fromln.origin. A COPY member's lines already carried the member's own file and line; this makes that the shared type instead of a translator-private one. Output is unchanged (error text identical:file:line).Class
"Where an expanded line came from" held only in the translator's private
Line. Covered: the shared type and map, with translator on it. Not covered: see Sibling gaps.Evidence
tests/core_engine/test_cobol_line_map_5648.py(3 pass): origin / short_origin / line_map; translatorLineis aMappedLinewith no extra fields leaking into core; nested COPY + REPLACING in fixed and free format, each member line keeps its member file and line.tests/cobol_mainframe -k "det or layout or free or copy or comment or feature_inventory or source"+ new test +test_source_reads: 2770 passed, 258 skipped.pr_gates --fast7/7,--ratchets8/8 (fact-crosscheck, ground-truth, estate, ports all PASS), tree-wide guards green. Golden masters not re-run: no scanner code changed (additive in core, translator only).Remaining slices (#5648)
>>IF/>>ELSE/>>END-IF/>>DEFINEshared expander usingcore.compiler_options(core + det/source.py + test).expand()/_replacingonto a coreexpand(source, libraries);EXEC SQL INCLUDEexpansion.det/source.pylogical_linesfixed/free splitting and_SOURCE_FORMATontoline_formats(see gap 1).mainframe_boundary._copy_replacing,galaxy_irREPLACING) consumingMappedLine/line_mapso findings citeCUSTREC.cpy:12.docs/language_status/fact_ownership.mdnote.Sibling gaps
mainframe_boundary,galaxy_ir) has no line map yet: findings cite the including file's line. Needs golden; no burned-estate program blocked on it.det/source.py_SOURCE_FORMAT(FREE|FIXED online[6:]) vs coredirective_format(VARIABLE, MF$SET): output risk, own proof (from Fixed-form row wrapper lives in core.cobol_source_format (Part of #5648) #5801).core/data_moves.py:140,core/cics_macro_level.py:92: naive*>cut (from Floating *> comment helpers live in core.cobol_preprocessor (Part of #5648) #5785).Co-Authored-By: Claude Sonnet 5.5 [email protected]
🤖 Generated with Claude Code