tree-sitter.tree-sitter/crates/generate
Will Lillis 7bd12334c4 fix(generate): include aliased supertypes in node-types.json
Aliasing a supertype makes the aliased occurrence appear as a regular
node in the syntax tree. For example,

```
alias($.expression, $.expression_target)
```

can produce:

```
(expression_target (identifier))
```

Previously, node-types generation skipped the source supertype entirely.
It could reference `expression_target` as a field or child type without
emitting a corresponding top-level entry for it.

Continue emitting the canonical `expression` entry with its `subtypes`,
but pass aliased appearances through regular node generation so their
children and fields are recorded and merged normally.
2026-08-23 13:40:32 -04:00
..
src fix(generate): include aliased supertypes in node-types.json 2026-08-23 13:40:32 -04:00
Cargo.toml build(deps): bump rquickjs to v0.12.2 2026-07-29 02:21:32 +02:00
LICENSE chore: copy license to all packages 2025-09-11 03:12:35 -04:00
README.md Reorganize rust crates into a flat crates directory, simplify some CI steps (#4496) 2025-06-06 14:25:37 -07:00

Tree-sitter Generate

This helper crate implements the logic for the tree-sitter generate command, and can be used by external tools to generate a parser from a grammar file.