Skip to content

Commit 719cef8

Browse files
committed
Merge branch 'main' into unreachable
2 parents f171eeb + 8352d17 commit 719cef8

File tree

129 files changed

+22777
-7220
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

129 files changed

+22777
-7220
lines changed

Cargo.lock

Lines changed: 10 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ members = [
77
"ruby/extractor",
88
"rust/extractor",
99
"rust/extractor/macros",
10-
"rust/generate-schema",
10+
"rust/ast-generator",
1111
]
1212

1313
[patch.crates-io]

MODULE.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ r.from_cargo(
6161
"//ruby/extractor:Cargo.toml",
6262
"//rust/extractor:Cargo.toml",
6363
"//rust/extractor/macros:Cargo.toml",
64-
"//rust/generate-schema:Cargo.toml",
64+
"//rust/ast-generator:Cargo.toml",
6565
"//shared/tree-sitter-extractor:Cargo.toml",
6666
],
6767
)
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
class Expr extends @expr {
2+
string toString() { none() }
3+
}
4+
5+
class Location extends @location_expr {
6+
string toString() { none() }
7+
}
8+
9+
predicate isExprRequires(Expr expr) { exists(int kind | exprs(expr, kind, _) | kind = 390) }
10+
11+
from Expr expr, int kind, int kind_new, Location location
12+
where
13+
exprs(expr, kind, location) and
14+
if isExprRequires(expr) then kind_new = 1 else kind_new = kind
15+
select expr, kind_new, location

0 commit comments

Comments
 (0)