Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
513c7bb
unified: Add scripts for automatically rebuilding Swift grammar
tausbn May 8, 2026
e709650
unified: Rebuild generated files
tausbn May 8, 2026
9062bba
unified: get rid of undesirable self-recursion in _expression
tausbn May 8, 2026
76a1a87
unified: regenerate files
tausbn May 8, 2026
7854a53
unified: stop operators bleeding through everywhere
tausbn May 8, 2026
5c16b0f
unified: regenerate files
tausbn May 8, 2026
c0efc52
unified: make if-condition nodes named, to stop bleed
tausbn May 8, 2026
c7c6e45
unified: regenerate files
tausbn May 8, 2026
38473f9
unified: make `expression` named and a supertype
tausbn May 8, 2026
9abfaca
unified: regenerate files
tausbn May 8, 2026
70f3fd1
unified: make `unannotated_type` named and supertype
tausbn May 8, 2026
37e1e3c
unified: regenerate files
tausbn May 8, 2026
91a46f0
unified: stop `"!"` bleeding through
tausbn May 8, 2026
caa9b04
unified: regenerate files
tausbn May 8, 2026
8b977ef
unified: Get rid of some `"."` bleed
tausbn May 8, 2026
a720e25
unified: regenerate files
tausbn May 8, 2026
994b27b
unified: convert _type into a named rule
tausbn May 8, 2026
e9822f6
unified: regenerate files
tausbn May 8, 2026
31386f5
unified: drop `element` field on `_parenthesized_type`
tausbn May 8, 2026
f9e7f90
unified: regenerate files
tausbn May 8, 2026
2608db9
unified: Prevent field bleed-through from `_if_let_binding`
tausbn May 8, 2026
a5a1312
unified: regenerate files
tausbn May 8, 2026
ff5c0b4
unified: add supertypes for various kinds of declarations
tausbn May 8, 2026
911e59c
unified: regenerate files
tausbn May 8, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions unified/AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,21 @@ This is a CodeQL extractor based on tree-sitter.
## Building
To build the extractor, run `scripts/create-extractor-pack.sh`

## Editing the Swift grammar
The vendored tree-sitter-swift grammar lives at
`extractor/tree-sitter-swift/`. After editing `grammar.js` (or any other
grammar source), run `scripts/regenerate-grammar.sh` to:
- regenerate `extractor/tree-sitter-swift/src/{parser.c, grammar.json,
node-types.json}` (and the `src/tree_sitter/*.h` headers) via
`tree-sitter generate`; and
- refresh `extractor/tree-sitter-swift/node-types.yml`, the
human-readable companion to `src/node-types.json` produced by yeast's
`node_types_yaml` binary.

`node-types.yml` is the recommended review surface for grammar changes —
it shows the impact of a grammar tweak on the named node kinds, fields,
and child types in a form much easier to read than the raw JSON.

## Testing
- If you changed the extractor code, always rebuild it before running tests.

Expand Down
Loading
Loading