Skip to content

refactor(napi/parser, linter/plugins): add int32 buffer view#21131

Merged
graphite-app[bot] merged 1 commit into
mainfrom
om/04-07-refactor_napi_parser_linter_plugins_add_int32_buffer_view
Apr 7, 2026
Merged

refactor(napi/parser, linter/plugins): add int32 buffer view#21131
graphite-app[bot] merged 1 commit into
mainfrom
om/04-07-refactor_napi_parser_linter_plugins_add_int32_buffer_view

Conversation

@overlookmotel

@overlookmotel overlookmotel commented Apr 7, 2026

Copy link
Copy Markdown
Member

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

overlookmotel commented Apr 7, 2026

Copy link
Copy Markdown
Member Author

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 changes, fast-track this PR to the front of the merge queue

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.

@github-actions github-actions Bot added A-linter Area - Linter A-parser Area - Parser A-cli Area - CLI A-ast-tools Area - AST tools labels Apr 7, 2026
@github-actions github-actions Bot added the A-linter-plugins Area - Linter JS plugins label Apr 7, 2026
@github-actions github-actions Bot added the C-cleanup Category - technical debt or refactoring. Solution not expected to change behavior label Apr 7, 2026
@overlookmotel
overlookmotel marked this pull request as ready for review April 7, 2026 15:48
@overlookmotel
overlookmotel requested a review from camc314 as a code owner April 7, 2026 15:48
Copilot AI review requested due to automatic review settings April 7, 2026 15:48

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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.int32 alongside uint32/float64.
  • Update generated TypeScript declarations (parser + oxlint) to include int32 in BufferWithArrays.
  • Update the raw-transfer generator template to wire up the int32 view 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.

Comment thread tasks/ast_tools/src/generators/raw_transfer.rs
@overlookmotel overlookmotel self-assigned this Apr 7, 2026
@overlookmotel
overlookmotel force-pushed the om/04-07-refactor_napi_parser_linter_plugins_add_int32_buffer_view branch from 35ececf to 73f8ddd Compare April 7, 2026 16:27
@overlookmotel
overlookmotel force-pushed the om/04-07-docs_linter_plugins_correct_comments branch from 0b2c4b6 to 19478f6 Compare April 7, 2026 16:27
@graphite-app graphite-app Bot added the 0-merge Merge with Graphite Merge Queue label Apr 7, 2026
@graphite-app
graphite-app Bot force-pushed the om/04-07-docs_linter_plugins_correct_comments branch 2 times, most recently from 6ee47c0 to 81781ed Compare April 7, 2026 17:16
@graphite-app
graphite-app Bot force-pushed the om/04-07-refactor_napi_parser_linter_plugins_add_int32_buffer_view branch from 73f8ddd to ca49dcb Compare April 7, 2026 17:17
@graphite-app

graphite-app Bot commented Apr 7, 2026

Copy link
Copy Markdown
Contributor

Merge activity

Add an `Int32Array` view of the buffer for raw transfer. It will be used in PRs later in this stack.
@graphite-app
graphite-app Bot force-pushed the om/04-07-docs_linter_plugins_correct_comments branch from 81781ed to 305350d Compare April 7, 2026 17:25
@graphite-app
graphite-app Bot force-pushed the om/04-07-refactor_napi_parser_linter_plugins_add_int32_buffer_view branch from ca49dcb to c70a8e9 Compare April 7, 2026 17:26
Base automatically changed from om/04-07-docs_linter_plugins_correct_comments to main April 7, 2026 17:29
@graphite-app graphite-app Bot removed the 0-merge Merge with Graphite Merge Queue label Apr 7, 2026
@graphite-app
graphite-app Bot merged commit c70a8e9 into main Apr 7, 2026
24 of 25 checks passed
@graphite-app
graphite-app Bot deleted the om/04-07-refactor_napi_parser_linter_plugins_add_int32_buffer_view branch April 7, 2026 17:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-ast-tools Area - AST tools A-cli Area - CLI A-linter Area - Linter A-linter-plugins Area - Linter JS plugins A-parser Area - Parser C-cleanup Category - technical debt or refactoring. Solution not expected to change behavior

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants