docs(estree/tokens): improve comments#19836
Conversation
Merging this PR will not alter performance
Comparing Footnotes
|
e498ad1 to
3afa959
Compare
d1b1775 to
9781dfa
Compare
There was a problem hiding this comment.
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, andget_token_type - Improved inline comments throughout visitor methods and helper functions for consistency and accuracy
Merge activity
|
9781dfa to
ba553f1
Compare
Pure comments-only change. Correct and improve comments throughout `oxc_estree_tokens` crate.
3afa959 to
0a5a2aa
Compare
ba553f1 to
0399311
Compare

Pure comments-only change. Correct and improve comments throughout
oxc_estree_tokenscrate.