Repository navigation
refactor(transformer): share class name and AST helpers - #29445
Merged
Merged
Conversation
Member
Author
Contributor
Merging this PR will not alter performance
Comparing Footnotes
|
This was referenced Nov 15, 2026
Dunqing
force-pushed
the
transformer-shared-class-helpers
branch
from
November 16, 2026 04:01
7b62503 to
b2f7a5e
Compare
Dunqing
force-pushed
the
fix-transformer-keep-decorated-fields
branch
from
November 16, 2026 04:01
a0c5b07 to
b417870
Compare
Dunqing
marked this pull request as ready for review
November 16, 2026 05:23
Member
Author
Merge activity
|
cursor
Bot
changed the base branch from
fix-transformer-keep-decorated-fields
to
graphite-base/29445
November 16, 2026 07:51
graphite-app Bot
pushed a commit
that referenced
this pull request
Nov 16, 2026
Contextual class-name inference and the variable-declaration and WeakSet builders live under ES2022 transforms despite being reusable by other class transforms. Move them into transformer utilities and update their existing callers, preserving the helper bodies, scopes, identifiers, and generated output. Verified with `just fmt`, `just test -p oxc_transformer` (39 tests), and `just lint -p oxc_transformer`. Full transform conformance output and exec reports are byte-identical to the parent, including existing failures; all 476 generated exec files are byte-identical. `cargo allocs` leaves all allocation snapshots unchanged. AI assistance was used to implement and verify this refactor.
graphite-app
Bot
force-pushed
the
transformer-shared-class-helpers
branch
from
November 16, 2026 08:19
b2f7a5e to
c3d4cbb
Compare
graphite-app
Bot
requested review from
Boshen,
camc314,
leaysgur and
overlookmotel
as code owners
November 16, 2026 08:19
graphite-app
Bot
changed the base branch from
graphite-base/29445
to
fix-transformer-keep-decorated-fields
November 16, 2026 08:19
Contextual class-name inference and the variable-declaration and WeakSet builders live under ES2022 transforms despite being reusable by other class transforms. Move them into transformer utilities and update their existing callers, preserving the helper bodies, scopes, identifiers, and generated output. Verified with `just fmt`, `just test -p oxc_transformer` (39 tests), and `just lint -p oxc_transformer`. Full transform conformance output and exec reports are byte-identical to the parent, including existing failures; all 476 generated exec files are byte-identical. `cargo allocs` leaves all allocation snapshots unchanged. AI assistance was used to implement and verify this refactor.
graphite-app
Bot
force-pushed
the
fix-transformer-keep-decorated-fields
branch
from
November 16, 2026 08:21
f523654 to
d520358
Compare
graphite-app
Bot
force-pushed
the
transformer-shared-class-helpers
branch
from
November 16, 2026 08:22
c3d4cbb to
fe2e300
Compare
Base automatically changed from
fix-transformer-keep-decorated-fields
to
main
November 16, 2026 08:25
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Contextual class-name inference and the variable-declaration and WeakSet builders live under ES2022 transforms despite being reusable by other class transforms. Move them into transformer utilities and update their existing callers, preserving the helper bodies, scopes, identifiers, and generated output.
Verified with
just fmt,just test -p oxc_transformer(39 tests), andjust lint -p oxc_transformer. Full transform conformance output and exec reports are byte-identical to the parent, including existing failures; all 476 generated exec files are byte-identical.cargo allocsleaves all allocation snapshots unchanged.AI assistance was used to implement and verify this refactor.