Commit 14a2003
Giancarlo Erra
test(graph): pin graceful degradation for Dart extension types
The vendored @ast-grep/lang-dart 0.0.7 grammar predates Dart 3.3
extension types and parses them to ERROR nodes; the kinds a newer
tree-sitter-dart exposes (extension_type_declaration) do not exist in
this version, so matching on them would be unreachable code. Document
the limitation at the walk site and lock in the contract: no throw, no
bogus symbols from the ERROR region, and the rest of the file still
extracts normally.1 parent 55d1f81 commit 14a2003
2 files changed
Lines changed: 25 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
399 | 399 | | |
400 | 400 | | |
401 | 401 | | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
402 | 407 | | |
403 | 408 | | |
404 | 409 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
575 | 575 | | |
576 | 576 | | |
577 | 577 | | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
578 | 598 | | |
579 | 599 | | |
580 | 600 | | |
| |||
0 commit comments