Skip to content

refactor(transformer): remove unused span parameter from helper_call/helper_call_expr#21579

Merged
graphite-app[bot] merged 1 commit intomainfrom
fix/transformer-helper-call-span
Apr 22, 2026
Merged

refactor(transformer): remove unused span parameter from helper_call/helper_call_expr#21579
graphite-app[bot] merged 1 commit intomainfrom
fix/transformer-helper-call-span

Conversation

@Dunqing
Copy link
Copy Markdown
Member

@Dunqing Dunqing commented Apr 20, 2026

Summary

Follow-up to #21578. Since helper calls now always use SPAN, the span parameter is unnecessary. This removes it from helper_call and helper_call_expr and cleans up all 28 call sites across 12 files.

Also removes now-unused span parameters from internal functions that only existed to pass through to helper calls:

  • create_private_field_get
  • create_private_field_set
  • create_check_in_rhs
  • create_private_instance_init_assignment_not_loose

Test plan

  • cargo build -p oxc_transformer — no warnings (except pre-existing oxc_allocator)
  • cargo test -p oxc_transformer — all pass
  • cargo run -p oxc_transform_conformance — no snapshot changes

Copy link
Copy Markdown
Member Author

Dunqing commented Apr 20, 2026


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.

@codspeed-hq
Copy link
Copy Markdown

codspeed-hq Bot commented Apr 20, 2026

Merging this PR will not alter performance

✅ 24 untouched benchmarks
⏩ 27 skipped benchmarks1


Comparing fix/transformer-helper-call-span (3b50f61) with fix/transformer-helper-call-span-fix (7bc49d6)

Open in CodSpeed

Footnotes

  1. 27 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports.

@Dunqing Dunqing changed the base branch from fix/transformer-helper-call-span-fix to graphite-base/21579 April 20, 2026 14:48
@Dunqing Dunqing force-pushed the graphite-base/21579 branch from 7bc49d6 to ebec0b3 Compare April 20, 2026 14:48
@Dunqing Dunqing force-pushed the fix/transformer-helper-call-span branch from 3b50f61 to 1c4cb2d Compare April 20, 2026 14:48
@Dunqing Dunqing changed the base branch from graphite-base/21579 to fix/transformer-helper-call-span-fix April 20, 2026 14:48
@Dunqing Dunqing marked this pull request as ready for review April 20, 2026 15:59
@Dunqing Dunqing requested a review from overlookmotel as a code owner April 20, 2026 16:00
@Dunqing Dunqing marked this pull request as draft April 21, 2026 07:10
@Dunqing Dunqing marked this pull request as ready for review April 22, 2026 09:27
@Dunqing Dunqing added the 0-merge Merge with Graphite Merge Queue label Apr 22, 2026
Copy link
Copy Markdown
Member Author

Dunqing commented Apr 22, 2026

Merge activity

@graphite-app graphite-app Bot changed the base branch from fix/transformer-helper-call-span-fix to graphite-base/21579 April 22, 2026 09:32
@graphite-app graphite-app Bot force-pushed the graphite-base/21579 branch from ebec0b3 to c92bd3b Compare April 22, 2026 09:43
@graphite-app graphite-app Bot force-pushed the fix/transformer-helper-call-span branch from 1c4cb2d to 53b13f8 Compare April 22, 2026 09:43
@graphite-app graphite-app Bot changed the base branch from graphite-base/21579 to main April 22, 2026 09:44
@graphite-app graphite-app Bot force-pushed the fix/transformer-helper-call-span branch from 53b13f8 to 280ff0d Compare April 22, 2026 09:44
…helper_call_expr (#21579)

## Summary

Follow-up to #21578. Since helper calls now always use `SPAN`, the `span` parameter is unnecessary. This removes it from `helper_call` and `helper_call_expr` and cleans up all 28 call sites across 12 files.

Also removes now-unused `span` parameters from internal functions that only existed to pass through to helper calls:
- `create_private_field_get`
- `create_private_field_set`
- `create_check_in_rhs`
- `create_private_instance_init_assignment_not_loose`

## Test plan

- `cargo build -p oxc_transformer` — no warnings (except pre-existing `oxc_allocator`)
- `cargo test -p oxc_transformer` — all pass
- `cargo run -p oxc_transform_conformance` — no snapshot changes
@graphite-app graphite-app Bot force-pushed the fix/transformer-helper-call-span branch from 62832f2 to c3f71a7 Compare April 22, 2026 09:56
@graphite-app graphite-app Bot merged commit c3f71a7 into main Apr 22, 2026
27 checks passed
@graphite-app graphite-app Bot removed the 0-merge Merge with Graphite Merge Queue label Apr 22, 2026
@graphite-app graphite-app Bot deleted the fix/transformer-helper-call-span branch April 22, 2026 10:05
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