Skip to content

docs(packages/codegen): reformat comments - #25876

Merged
graphite-app[bot] merged 1 commit into
mainfrom
om/08-18-docs_packages_codegen_reformat_comments
Aug 18, 2026
Merged

docs(packages/codegen): reformat comments#25876
graphite-app[bot] merged 1 commit into
mainfrom
om/08-18-docs_packages_codegen_reformat_comments

Conversation

@overlookmotel

@overlookmotel overlookmotel commented Aug 18, 2026

Copy link
Copy Markdown
Member

Continuation of #25848. Pure style change. Reformat a couple of comments I missed previously.

@github-actions github-actions Bot added the A-codegen Area - Code Generation label Aug 18, 2026

Copy link
Copy Markdown
Member Author

How to use the Graphite Merge Queue

Add either label to this PR to merge it via the merge queue:

  • 0-merge - adds this PR to the back of the merge queue
  • hotfix - for urgent changes, fast-track this PR to the front of the merge queue

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

This stack of pull requests is managed by Graphite. Learn more about stacking.

@overlookmotel overlookmotel self-assigned this Aug 18, 2026
@overlookmotel
overlookmotel marked this pull request as ready for review August 18, 2026 15:46
Copilot AI lite review requested due to automatic review settings August 18, 2026 15:46
@overlookmotel overlookmotel added the 0-merge Merge with Graphite Merge Queue label Aug 18, 2026

overlookmotel commented Aug 18, 2026

Copy link
Copy Markdown
Member Author

Merge activity

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Style-only follow-up to prior docs/comment reformatting in the JS codegen package, focused on improving readability of a couple of inline explanatory comments (not changing runtime behavior).

Changes:

  • Adjusted an inline comment in State describing sourcemap mapping/encoding flow.
  • Rewrapped an inline comment in printExpression describing a sourcemap mapping edge case after postfix operands.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
packages/codegen/src-js/state.ts Rewraps an explanatory comment about writeWithMap/generateSourceMap behavior.
packages/codegen/src-js/print/expression.ts Rewraps an explanatory comment about postfix-exclusive-end sourcemap mappings.

💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.

Comment thread packages/codegen/src-js/state.ts
Comment thread packages/codegen/src-js/print/expression.ts
Continuation of #25848. Pure style change. Reformat a couple of comments I missed previously.
@graphite-app
graphite-app Bot force-pushed the om/08-18-docs_packages_codegen_reformat_comments branch from 2aa9991 to 5ad330e Compare August 18, 2026 15:56
@graphite-app
graphite-app Bot merged commit 5ad330e into main Aug 18, 2026
29 checks passed
@graphite-app graphite-app Bot removed the 0-merge Merge with Graphite Merge Queue label Aug 18, 2026
@graphite-app
graphite-app Bot deleted the om/08-18-docs_packages_codegen_reformat_comments branch August 18, 2026 16:02
graphite-app Bot pushed a commit that referenced this pull request Aug 19, 2026
### 🚀 Features

- 83cb516 minifier: Improve negation of expressions in boolean context (#25755) (Armano)

### 🐛 Bug Fixes

- 134fb22 isolated-declarations: Preserve unresolved parameter types (#25909) (Dunqing)
- 526c2b3 codegen: Remove deprecated test APIs (#25889) (camc314)
- 344a9b2 codegen: Align enum template sourcemaps (#25872) (camc314)

### ⚡ Performance

- 5ef0c93 minifier: Unwrap all unary exprs without creating dummy expressions (#25891) (Armano)
- 8783524 packages/codegen: Remove loop from `growMappingBuffer` (#25886) (overlookmotel)
- b6b14c0 packages/codegen: Remove redundant branch (#25885) (overlookmotel)
- be6adf0 packages/sourcemap: Make `location` passed to `recordSourceMapping` always a number (#25884) (overlookmotel)
- f720f15 packages/codegen: Take named-mapping only code off hot path in `recordSourceMapping` (#25883) (overlookmotel)
- a734af5 packages/codegen: Remove redundant setting of `last` in `printImportAttributes` and `printIf` (#25882) (overlookmotel)
- c6e44c6 packages/codegen: Combine 2 writes in `printJSXElement` (#25881) (overlookmotel)
- 8801662 packages/codegen: Remove redundant mapping from `printParams` (#25880) (overlookmotel)

### 📚 Documentation

- 5ad330e packages/codegen: Reformat comments (#25876) (overlookmotel)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-codegen Area - Code Generation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants