mirror of
https://github.com/abhigyanpatwari/GitNexus.git
synced 2026-09-30 01:51:20 +00:00
tree-sitter-dart@1.0.0 ships with NAN-style native bindings that are incompatible with tree-sitter@0.21.x (NAPI). This causes the Dart parser to fail to load, silently disabling all Dart symbol extraction. Changes: 1. build-tree-sitter-dart.cjs: Auto-patch binding.cc, binding.gyp, and index.js to NAPI style before running node-gyp rebuild. The patch mirrors the pattern used by tree-sitter-go and other bundled parsers. 2. tree-sitter-queries.ts: Remove the nullable_type query pattern. tree-sitter-dart@1.0.0 grammar has no nullable_type node — nullable fields (e.g. String? name) are parsed as (type_identifier) + "?" anonymous token. The existing typed-field query already captures them. Tested on a real Flutter project (~57k Dart symbols extracted). Fixes #584 |
||
|---|---|---|
| .. | ||
| bench-scope-resolution.ts | ||
| build-tree-sitter-dart.cjs | ||
| build-tree-sitter-proto.cjs | ||
| build.js | ||
| ci-list-migrated-languages.ts | ||
| install-duckdb-extension.mjs | ||