GitNexus/gitnexus/scripts
David 1e734a3348 fix(dart): patch NAN→NAPI bindings and remove invalid nullable_type query
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
2026-05-07 10:40:36 +08:00
..
bench-scope-resolution.ts feat(python): scope-based call resolution + registry-primary flip + perf + generalization (RFC #909 Ring 3) (#980) 2026-04-21 15:50:00 +01:00
build-tree-sitter-dart.cjs fix(dart): patch NAN→NAPI bindings and remove invalid nullable_type query 2026-05-07 10:40:36 +08:00
build-tree-sitter-proto.cjs fix(swift): use official prebuilt parser runtime (#1130) 2026-04-28 09:57:42 +01:00
build.js fix(serve): serve web UI at root path instead of 404 (#1048) 2026-04-27 13:17:40 +01:00
ci-list-migrated-languages.ts feat(python): scope-based call resolution + registry-primary flip + perf + generalization (RFC #909 Ring 3) (#980) 2026-04-21 15:50:00 +01:00
install-duckdb-extension.mjs fix(deps): upgrade @ladybugdb/core to 0.16.0 to resolve native segfaults (#1235) 2026-04-30 17:40:39 +01:00