Skip to content

Cumulative improvements from PRs #253-#260 (draft, diff review only)#7

Closed
traceyyoshima wants to merge 1 commit into
engine/format-sweep-2026-05-17from
t3
Closed

Cumulative improvements from PRs #253-#260 (draft, diff review only)#7
traceyyoshima wants to merge 1 commit into
engine/format-sweep-2026-05-17from
t3

Conversation

@traceyyoshima

Copy link
Copy Markdown
Owner

Diff view: post-fix state vs initial sweep

This draft PR shows the cumulative improvements the language-engine formatter gained from 8 PRs landed during the 2026-05-17 session, applied to the same kafka source.

Each removed line shows what the formatter would have done initially; each added line shows what it does now.

PRs reflected in this diff

PR Pattern closed
apache#253 Annotation paren anchor for continuation slots
apache#254 Inline lambda body 2x indent (StructuralBody2x catalog class)
apache#255 Binary continuation inside lambda body
apache#256 Inline lambda close brace (+0 / +projectDelta both valid)
apache#257 Method body indent with multi-line params (emittedLineStarts prefix gate)
apache#258 Chain dot off complex receiver (alignmentTargets prefix gate)
apache#259 Chain wrap preservation when siblings agree on column
apache#260 Binary OPERATOR_PREFIX consults outermost binary's anchor

Most visible closures

  • ShareConsumerTest: body 107-line diff → 9 lines → 0 (lambda body + close brace + nested args)
  • AsyncKafkaConsumerTest: 84-line diff → 22 lines → mostly trailing-ws cleanup (method body indent fixed)
  • ProducerIdExpirationTest: regression on annotation value = continuation closed
  • DeleteAclsResponse / CustomQuotaCallbackTest: binary continuations inside lambda bodies preserved
  • AdminClientConfig / WriteTxnMarkersRequest: chain dots off complex receivers preserved
  • TxnOffsetCommitRequest / RequestResponseTest: chain wraps with sibling consensus preserved
  • StreamsResetter: all || continuations in the binary chain now consistently preserved

Not for merge; diff inspection only.

@traceyyoshima traceyyoshima left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Submitting for review. Git is too slow, need to switch to internal tooling.

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be in scope of the invocation at 249

setErrorCode(Errors.MISMATCHED_ENDPOINT_TYPE.code()).
setErrorMessage("The request was sent to an endpoint of type BROKER, " +
"but we wanted an endpoint of type CONTROLLER")));
"but we wanted an endpoint of type CONTROLLER")));

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The binary RHS should have been indented while in the method invocation.

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should have an indent, since it's a select on a new class.

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The arguments should have indented with the invocation

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The arguments should have been indented

…pache#261)

Refreshed snapshot. Nine language-engine PRs landed this session:

- PR apache#253 — Annotation paren anchor for continuation slots
- PR apache#254 — StructuralBody2x catalog class for inline lambda bodies
- PR apache#255 — Lambda body as continuation enclosing scope
- PR apache#256 — Inline-lambda body close brace catalog
- PR apache#257 — emittedLineStarts restricted to OWNER's prefix slot
- PR apache#258 — alignmentTargets restricted to OWNER's prefix slot
- PR apache#259 — Chain wrap preservation when siblings agree on column
- PR apache#260 — Binary OPERATOR_PREFIX consults outermost binary's anchor
- PR apache#261 — Nested continuation slots use innermost enclosing scope

Sweep stats (post-apache#261):
  files scanned : 5,834
  files changed : 986 (16.9%)     [initial PR #6: 1,038]
  byte delta    : -11,137          [initial PR #6: -6,661]
  reformat time : ~7s total

PR #7 review comments status:
  - Comments 1+2 closed (PR apache#261)
  - Comments 3 + 4/5 deferred (workbench-first investigation; diagnosis
    captured in language-engine memory project_pr7_deferred_comments_2026_05_17.md)
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