Skip to content

docs(estree/tokens): improve comments#19836

Merged
graphite-app[bot] merged 1 commit intomainfrom
om/02-28-docs_estree_tokens_improve_comments
Feb 28, 2026
Merged

docs(estree/tokens): improve comments#19836
graphite-app[bot] merged 1 commit intomainfrom
om/02-28-docs_estree_tokens_improve_comments

Conversation

@overlookmotel
Copy link
Member

@overlookmotel overlookmotel commented Feb 28, 2026

Pure comments-only change. Correct and improve comments throughout oxc_estree_tokens crate.

Copy link
Member Author

overlookmotel commented Feb 28, 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 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 Feb 28, 2026

Merging this PR will not alter performance

✅ 52 untouched benchmarks
⏩ 3 skipped benchmarks1


Comparing om/02-28-docs_estree_tokens_improve_comments (9781dfa) with om/02-28-refactor_estree_tokens_make_estreeunsafetoken_type_private (e498ad1)2

Open in CodSpeed

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.

  2. No successful run was found on om/02-28-refactor_estree_tokens_make_estreeunsafetoken_type_private (3afa959) during the generation of this report, so 81eb2f4 was used instead as the comparison base. There might be some changes unrelated to this pull request in this report.

@overlookmotel overlookmotel force-pushed the om/02-28-refactor_estree_tokens_make_estreeunsafetoken_type_private branch from e498ad1 to 3afa959 Compare February 28, 2026 12:31
@overlookmotel overlookmotel force-pushed the om/02-28-docs_estree_tokens_improve_comments branch from d1b1775 to 9781dfa Compare February 28, 2026 12:31
@overlookmotel overlookmotel marked this pull request as ready for review February 28, 2026 12:34
Copilot AI review requested due to automatic review settings February 28, 2026 12:35
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 is a pure documentation improvement to the oxc_estree_tokens crate. It corrects imprecise wording, improves clarity, adds missing docstrings for several functions, and updates internal comments to better reflect the actual implementation (e.g. replacing "escape checking" with "JSON encoding", clarifying "bounds checks" vs "arithmetic overflow checks", and updating type references from "ESTreeToken" to "ESTreeSafeToken"/"ESTreeUnsafeToken").

Changes:

  • Corrected and clarified doc comments for structs (ESTreeSafeToken, ESTreeUnsafeToken, ESTreeRegExpToken, RegExpData, U32String) and their methods
  • Added new doc comments for TokenType::new, TokenType::as_str, U32String::new, U32String::format, ESTreeTokenOptions, and get_token_type
  • Improved inline comments throughout visitor methods and helper functions for consistency and accuracy

@graphite-app
Copy link
Contributor

graphite-app bot commented Feb 28, 2026

Merge activity

@overlookmotel overlookmotel force-pushed the om/02-28-docs_estree_tokens_improve_comments branch from 9781dfa to ba553f1 Compare February 28, 2026 12:59
Pure comments-only change. Correct and improve comments throughout `oxc_estree_tokens` crate.
@graphite-app graphite-app bot force-pushed the om/02-28-refactor_estree_tokens_make_estreeunsafetoken_type_private branch from 3afa959 to 0a5a2aa Compare February 28, 2026 13:00
@graphite-app graphite-app bot requested a review from camc314 as a code owner February 28, 2026 13:00
@graphite-app graphite-app bot force-pushed the om/02-28-docs_estree_tokens_improve_comments branch from ba553f1 to 0399311 Compare February 28, 2026 13:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-linter-plugins Area - Linter JS plugins A-parser Area - Parser C-docs Category - Documentation. Related to user-facing or internal documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants