Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@camc314
Copy link
Contributor

@camc314 camc314 commented Dec 3, 2025

This just exposes the method introduced into oxc_ast​ in #16438

πŸ€– generated with help from Claude Opus 4.5

@github-actions github-actions bot added the A-semantic Area - Semantic label Dec 3, 2025
@camc314 camc314 marked this pull request as ready for review December 3, 2025 11:45
@camc314 camc314 requested a review from Dunqing as a code owner December 3, 2025 11:45
@github-actions github-actions bot added the C-enhancement Category - New feature or request label Dec 3, 2025
Copy link
Contributor Author

camc314 commented Dec 3, 2025


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 hot fixes, skip the queue and merge this PR next

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

codspeed-hq bot commented Dec 3, 2025

CodSpeed Performance Report

Merging #16439 will not alter performance

Comparing c/12-03-feat_semantic_expose_get_comment_at_method (e68269a) with c/12-03-feat_ast_add_get_comment_at_function_for_efficient_comment_span_lookup (9517f01)

Summary

βœ… 42 untouched
⏩ 3 skipped1

Footnotes

  1. 3 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. ↩

@camc314 camc314 force-pushed the c/12-03-feat_semantic_expose_get_comment_at_method branch from 59c42a1 to b404099 Compare December 3, 2025 13:11
@camc314 camc314 force-pushed the c/12-03-feat_ast_add_get_comment_at_function_for_efficient_comment_span_lookup branch 2 times, most recently from 01f85ab to 9517f01 Compare December 3, 2025 13:27
@camc314 camc314 force-pushed the c/12-03-feat_semantic_expose_get_comment_at_method branch 2 times, most recently from e68269a to e7f423e Compare December 3, 2025 13:47
@camc314 camc314 added the 0-merge Merge with Graphite Merge Queue label Dec 3, 2025
Copy link
Contributor Author

camc314 commented Dec 3, 2025

Merge activity

  • Dec 3, 1:47 PM UTC: The merge label '0-merge' was detected. This PR will be added to the Graphite merge queue once it meets the requirements.
  • Dec 3, 1:57 PM UTC: camc314 added this pull request to the Graphite merge queue.
  • Dec 3, 1:58 PM UTC: The Graphite merge queue couldn't merge this PR because it had merge conflicts.
  • Dec 3, 2:21 PM UTC: The merge label '0-merge' was detected. This PR will be added to the Graphite merge queue once it meets the requirements.
  • Dec 3, 2:22 PM UTC: Graphite rebased this pull request, because this pull request is set to merge when ready.
  • Dec 3, 2:35 PM UTC: Merged by the Graphite merge queue.

@camc314 camc314 force-pushed the c/12-03-feat_semantic_expose_get_comment_at_method branch from e7f423e to 206868c Compare December 3, 2025 13:48
@github-actions github-actions bot added the A-ast Area - AST label Dec 3, 2025
@graphite-app graphite-app bot changed the base branch from c/12-03-feat_ast_add_get_comment_at_function_for_efficient_comment_span_lookup to graphite-base/16439 December 3, 2025 13:49
@graphite-app graphite-app bot changed the base branch from graphite-base/16439 to main December 3, 2025 13:57
@graphite-app graphite-app bot removed the 0-merge Merge with Graphite Merge Queue label Dec 3, 2025
@camc314 camc314 added the 0-merge Merge with Graphite Merge Queue label Dec 3, 2025
Copilot AI review requested due to automatic review settings December 3, 2025 14:21
@camc314 camc314 force-pushed the c/12-03-feat_semantic_expose_get_comment_at_method branch from 206868c to 8274f63 Compare December 3, 2025 14:21
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR exposes the get_comment_at method from oxc_ast in the oxc_semantic crate's public API, following the same pattern used for other comment-related utility methods. The change also includes a minor documentation cleanup in the oxc_ast crate.

Key Changes

  • Added get_comment_at function to the imports in oxc_semantic
  • Added a new public method Semantic::get_comment_at() that wraps the imported function
  • Fixed incomplete documentation in oxc_ast/src/trivia.rs

Reviewed changes

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

File Description
crates/oxc_semantic/src/lib.rs Imports get_comment_at from oxc_ast and exposes it as a public method in the Semantic struct
crates/oxc_ast/src/trivia.rs Removes incomplete sentence fragment from documentation

πŸ’‘ Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

This just exposes the method introduced into `oxc_ast`​ in #16438

πŸ€– generated with help from Claude Opus 4.5
@graphite-app graphite-app bot force-pushed the c/12-03-feat_semantic_expose_get_comment_at_method branch from 8274f63 to 8c10694 Compare December 3, 2025 14:29
@graphite-app graphite-app bot merged commit 8c10694 into main Dec 3, 2025
20 checks passed
@graphite-app graphite-app bot deleted the c/12-03-feat_semantic_expose_get_comment_at_method branch December 3, 2025 14:35
@graphite-app graphite-app bot removed the 0-merge Merge with Graphite Merge Queue label Dec 3, 2025
overlookmotel pushed a commit that referenced this pull request Dec 8, 2025
### πŸ’₯ BREAKING CHANGES

- 083fea9 napi/parser: [**BREAKING**] Represent empty optional fields on
JS side as `null` (#16411) (overlookmotel)

### πŸš€ Features

- 7a2afee parser: Add TS1174 error for classes extending multiple base
classes (#15993) (sapphi-red)
- da87812 semantic: Add TS2309 error for export assignment with other
exports (#15992) (sapphi-red)
- d6d2bcd minifier: Remove unused function calls that are marked by
`manual_pure_functions` (#16534) (sapphi-red)
- c90f053 minifier: Support `.` separated values for
`compress.treeshake.manualPureFunctions` (#16529) (sapphi-red)
- a607cc4 codegen: Preserve comments between CatchClause's param and
body (#16167) (copilot-swe-agent)
- 8c10694 semantic: Expose get_comment_at method (#16439) (camc314)
- 3981e7a ast: Add get_comment_at to lookup a comment by span (#16438)
(camc314)

### πŸ› Bug Fixes

- 699406a napi/parser: Move `ExportEntry::module_request` field to first
(#16412) (overlookmotel)
- 12bd794 napi/parser: Move `ExportEntry::module_request` field to last
(#16403) (overlookmotel)

### ⚑ Performance

- 790beeb napi/parser: Do not remove extraneous options on JS side
(#16447) (overlookmotel)

Co-authored-by: Boshen <[email protected]>
Copilot AI pushed a commit that referenced this pull request Dec 10, 2025
### πŸ’₯ BREAKING CHANGES

- 083fea9 napi/parser: [**BREAKING**] Represent empty optional fields on
JS side as `null` (#16411) (overlookmotel)

### πŸš€ Features

- 7a2afee parser: Add TS1174 error for classes extending multiple base
classes (#15993) (sapphi-red)
- da87812 semantic: Add TS2309 error for export assignment with other
exports (#15992) (sapphi-red)
- d6d2bcd minifier: Remove unused function calls that are marked by
`manual_pure_functions` (#16534) (sapphi-red)
- c90f053 minifier: Support `.` separated values for
`compress.treeshake.manualPureFunctions` (#16529) (sapphi-red)
- a607cc4 codegen: Preserve comments between CatchClause's param and
body (#16167) (copilot-swe-agent)
- 8c10694 semantic: Expose get_comment_at method (#16439) (camc314)
- 3981e7a ast: Add get_comment_at to lookup a comment by span (#16438)
(camc314)

### πŸ› Bug Fixes

- 699406a napi/parser: Move `ExportEntry::module_request` field to first
(#16412) (overlookmotel)
- 12bd794 napi/parser: Move `ExportEntry::module_request` field to last
(#16403) (overlookmotel)

### ⚑ Performance

- 790beeb napi/parser: Do not remove extraneous options on JS side
(#16447) (overlookmotel)

Co-authored-by: Boshen <[email protected]>
taearls pushed a commit to taearls/oxc that referenced this pull request Dec 11, 2025
This just exposes the method introduced into `oxc_ast`​ in oxc-project#16438

πŸ€– generated with help from Claude Opus 4.5
taearls pushed a commit to taearls/oxc that referenced this pull request Dec 11, 2025
### πŸ’₯ BREAKING CHANGES

- 083fea9 napi/parser: [**BREAKING**] Represent empty optional fields on
JS side as `null` (oxc-project#16411) (overlookmotel)

### πŸš€ Features

- 7a2afee parser: Add TS1174 error for classes extending multiple base
classes (oxc-project#15993) (sapphi-red)
- da87812 semantic: Add TS2309 error for export assignment with other
exports (oxc-project#15992) (sapphi-red)
- d6d2bcd minifier: Remove unused function calls that are marked by
`manual_pure_functions` (oxc-project#16534) (sapphi-red)
- c90f053 minifier: Support `.` separated values for
`compress.treeshake.manualPureFunctions` (oxc-project#16529) (sapphi-red)
- a607cc4 codegen: Preserve comments between CatchClause's param and
body (oxc-project#16167) (copilot-swe-agent)
- 8c10694 semantic: Expose get_comment_at method (oxc-project#16439) (camc314)
- 3981e7a ast: Add get_comment_at to lookup a comment by span (oxc-project#16438)
(camc314)

### πŸ› Bug Fixes

- 699406a napi/parser: Move `ExportEntry::module_request` field to first
(oxc-project#16412) (overlookmotel)
- 12bd794 napi/parser: Move `ExportEntry::module_request` field to last
(oxc-project#16403) (overlookmotel)

### ⚑ Performance

- 790beeb napi/parser: Do not remove extraneous options on JS side
(oxc-project#16447) (overlookmotel)

Co-authored-by: Boshen <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-ast Area - AST A-semantic Area - Semantic C-enhancement Category - New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants