GitNexus/gitnexus/vendor/tree-sitter-dart
gitnexus-release-bot[bot] 47d63a0601
chore(vendor): update tree-sitter-dart to 1.0.0-g0038280 (#3633)
* chore(vendor): update tree-sitter-dart to 1.0.0-g0038280

* chore(vendor): rebuild native prebuilds (tree-sitter-dart)

Built by https://github.com/abhigyanpatwari/GitNexus/actions/runs/39212887661

* fix(dart): use native extension type parsing

The upgraded grammar parses extension types directly. The compatibility
rewrite loses generic extension bodies and implements clauses, so capture
the native nodes and register their member ownership instead.

Refresh the Dart capture fingerprint after comparing the old grammar and
emitter over the same fixture corpus. Keep the scaling budget unchanged.

Refs #3633

* chore(vendor): rebuild native prebuilds (tree-sitter-dart)

Built by https://github.com/abhigyanpatwari/GitNexus/actions/runs/39239767139

* fix: repair Dart parity and checkpoint regressions

Remove Dart from the preprocessing fixture inventory after retiring its
hook. Use the parsed body boundary when reading extension-type heritage
so named-record representations retain their implements clauses.

Seed the WAL recovery fixture with the normal checkpoint threshold, then
force one-byte checkpoints only for the deliberately blocked write.
Require an actual error exit instead of accepting a subprocess timeout.

Refs #3633

* chore(vendor): rebuild native prebuilds (tree-sitter-dart)

Built by https://github.com/abhigyanpatwari/GitNexus/actions/runs/39248441688

---------

Co-authored-by: gitnexus-release-bot[bot] <gitnexus-release-bot[bot]@users.noreply.github.com>
Co-authored-by: Gergo Magyar <gergomagyar0@gmail.com>
2026-10-19 15:41:34 +01:00
..
bindings/node fix(install): vendor tree-sitter-dart source (#1125) 2026-04-27 21:15:37 +01:00
prebuilds chore(vendor): update tree-sitter-dart to 1.0.0-g0038280 (#3633) 2026-10-19 15:41:34 +01:00
queries fix(install): vendor tree-sitter-dart source (#1125) 2026-04-27 21:15:37 +01:00
src chore(vendor): update tree-sitter-dart to 1.0.0-g0038280 (#3633) 2026-10-19 15:41:34 +01:00
.gitignore fix(install): vendor tree-sitter-dart source (#1125) 2026-04-27 21:15:37 +01:00
binding.gyp fix(install): vendor tree-sitter-dart source (#1125) 2026-04-27 21:15:37 +01:00
grammar.js fix(install): vendor tree-sitter-dart source (#1125) 2026-04-27 21:15:37 +01:00
package.json chore(vendor): update tree-sitter-dart to 1.0.0-g0038280 (#3633) 2026-10-19 15:41:34 +01:00
README.md fix(install): vendor tree-sitter-dart source (#1125) 2026-04-27 21:15:37 +01:00

tree-sitter-dart

This is a tree-sitter grammar written for the dart programming language. We attempt to adhere as closely as possible to the dart language spec. Initially it was started with a copy of the tree-sitter Java grammar which is why there may be a few relics included in here. For the sake of simplifying the syntax tree, many items were made inlined with tree-sitter's "underscore" method of writing rules.

Getting Started

  • Go to the project directory
  • run npm install (first time)
  • run npm run build_init (first time) npm run build (subsequent times)
  • run npm run test

To test a single highlight file

  • run tree-sitter highlight test/highlight/types.dart

To test a single test file

  • run tree-sitter test -f 'testcasefilter'
  • for example tree-sitter test -f 'dart string literals'

To show the output of a parse for a sample file (for example while debugging highlight issues)

  • run tree-sitter parse path/to/file.dart