refactor(estree/tokens): rename UpdateContext to RawContext#19866
Conversation
There was a problem hiding this comment.
Pull request overview
Refactors oxc_estree_tokens’ raw-transfer token processing context by renaming UpdateContext to RawContext, updating in-code documentation to match the new terminology.
Changes:
- Rename
UpdateContexttoRawContextin the raw transfer implementation. - Update doc/comments to replace “update mode” phrasing with “raw transfer mode”.
- Minor wording improvements in docs (e.g., “update” → “set”) to better describe behavior.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| crates/oxc_estree_tokens/src/visitor.rs | Updates “update mode” comment wording to “raw transfer mode” in visitor notes. |
| crates/oxc_estree_tokens/src/raw_transfer.rs | Renames UpdateContext → RawContext and updates related doc comments. |
| crates/oxc_estree_tokens/src/lib.rs | Updates crate-level docs to reference RawContext. |
| crates/oxc_estree_tokens/src/json.rs | Updates JSXState accessor docs to remove “serializer/updater” phrasing. |
| crates/oxc_estree_tokens/src/context.rs | Updates mode terminology and doc links from UpdateContext to RawContext. |
Merging this PR will not alter performance
Comparing Footnotes
|
8581850 to
43875e0
Compare
ce89e1d to
b6f81a4
Compare
Merge activity
|
43875e0 to
53af931
Compare
Pure refactor. Rename `UpdateContext` to `RawContext`, and update references in comments.
b6f81a4 to
73aa87e
Compare
Pure refactor. Rename `UpdateContext` to `RawContext`, and update references in comments.
53af931 to
442b0b9
Compare
73aa87e to
bb87d80
Compare

Pure refactor. Rename
UpdateContexttoRawContext, and update references in comments.