Skip to content

refactor(php-transformer): move inline flow lowering into Elements/InlineFlowLowering - #5258

Merged
chubes4 merged 2 commits into
trunkfrom
simplify/inline-flow
Nov 9, 2026
Merged

chubes4 merged 2 commits into
trunkfrom
simplify/inline-flow

Conversation

@chubes4

@chubes4 chubes4 commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

Part of #4368 (slice 2x).

What

  • New owner, Elements/InlineFlowLowering. Moved verbatim out of HtmlCompilation:
    • textFlowBlockFromElement: a div of inline content split by <br> becomes one paragraph.
    • inlineTokenGroupBlockFromElement: an inline token group becomes a group of paragraphs.
  • Mechanical substitutions only:

HtmlCompilation: −85 lines.

Verification

  • Lab gate (composer validate --strict && lint && test:lint && test): GATE=0.
  • Two concurrent A/B rounds of the rj/website compile, trunk 2b7024f6 vs this branch 44f23281, with HEADs asserted: output_sha256 3621947c…e51f on all 4 outputs, byte-identical.

AI disclosure: Claude Opus (Anthropic) via Pi/Roadie moved the code with a mechanical mover script, ran the Lab gate and A/B, and wrote this PR for Chris Huber.

chubes4 and others added 2 commits November 9, 2026 11:21
…lineFlowLowering

Moves textFlowBlockFromElement and inlineTokenGroupBlockFromElement out
of HtmlCompilation verbatim. The token-group recursion goes through the
PatternTreeConverter, as in the other lowering owners.
@chubes4
chubes4 merged commit d8d9ced into trunk Nov 9, 2026
13 checks passed
@chubes4
chubes4 deleted the simplify/inline-flow branch November 9, 2026 18:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant