docs(packages/codegen): reformat comments - #25876
Conversation
How to use the Graphite Merge QueueAdd either label to this PR to merge it via 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. |
Merge activity
|
There was a problem hiding this comment.
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
Statedescribing sourcemap mapping/encoding flow. - Rewrapped an inline comment in
printExpressiondescribing 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.
Continuation of #25848. Pure style change. Reformat a couple of comments I missed previously.
2aa9991 to
5ad330e
Compare
### 🚀 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)

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