refactor(napi/parser, linter/plugins): add int32 buffer view#21131
Merged
graphite-app[bot] merged 1 commit intomainfrom Apr 7, 2026
Merged
Conversation
This was referenced Apr 7, 2026
Member
Author
This was referenced Apr 7, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
Adds an Int32Array view (int32) to the raw-transfer Uint8Array buffer shape so deserializers and linter/parser plumbing can access signed 32-bit values without reinterpreting uint32.
Changes:
- Extend raw-transfer buffer construction to attach
buffer.int32alongsideuint32/float64. - Update generated TypeScript declarations (parser + oxlint) to include
int32inBufferWithArrays. - Update the raw-transfer generator template to wire up the
int32view in generated deserializers.
Reviewed changes
Copilot reviewed 5 out of 14 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| tasks/ast_tools/src/generators/raw_transfer.rs | Updates generator prelude + emitted .d.ts buffer types to include int32. |
| napi/parser/src-js/raw-transfer/common.js | Attaches int32 view when creating parser raw-transfer buffers. |
| napi/parser/src-js/generated/deserialize/*.d.ts | Updates parser deserializer buffer type to require int32. |
| apps/oxlint/src-js/plugins/types.ts | Extends BufferWithArrays interface with int32. |
| apps/oxlint/src-js/plugins/lint.ts | Ensures incoming buffers get an int32 view attached before use. |
| apps/oxlint/src-js/package/parse.ts | Attaches int32 view when creating the RuleTester raw-transfer buffer. |
| apps/oxlint/src-js/generated/deserialize.d.ts | Updates oxlint deserializer buffer type to require int32. |
35ececf to
73f8ddd
Compare
0b2c4b6 to
19478f6
Compare
6ee47c0 to
81781ed
Compare
73f8ddd to
ca49dcb
Compare
Contributor
Merge activity
|
Add an `Int32Array` view of the buffer for raw transfer. It will be used in PRs later in this stack.
81781ed to
305350d
Compare
ca49dcb to
c70a8e9
Compare
Base automatically changed from
om/04-07-docs_linter_plugins_correct_comments
to
main
April 7, 2026 17:29
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Add an
Int32Arrayview of the buffer for raw transfer. It will be used in PRs later in this stack.