Skip to content

Commit ba6a4c6

Browse files
authored
QL: Use more precise type for getImplements
1 parent 5a214af commit ba6a4c6

File tree

5 files changed

+5
-7
lines changed

5 files changed

+5
-7
lines changed

ql/Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ql/extractor/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ edition = "2018"
1010
flate2 = "1.0"
1111
node-types = { path = "../node-types" }
1212
tree-sitter = "0.19"
13-
tree-sitter-ql = { git = "https://github.com/tausbn/tree-sitter-ql.git", rev = "67f75344593b90c40201c6f895207fe9ddb4442b" }
13+
tree-sitter-ql = { git = "https://github.com/tausbn/tree-sitter-ql.git", rev = "f073fca8875e9320142c171caa722544cd531b9d" }
1414
clap = "2.33"
1515
tracing = "0.1"
1616
tracing-subscriber = { version = "0.3.3", features = ["env-filter"] }

ql/generator/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ clap = "2.33"
1111
node-types = { path = "../node-types" }
1212
tracing = "0.1"
1313
tracing-subscriber = { version = "0.3.3", features = ["env-filter"] }
14-
tree-sitter-ql = { git = "https://github.com/tausbn/tree-sitter-ql.git", rev = "67f75344593b90c40201c6f895207fe9ddb4442b" }
14+
tree-sitter-ql = { git = "https://github.com/tausbn/tree-sitter-ql.git", rev = "f073fca8875e9320142c171caa722544cd531b9d" }

ql/ql/src/codeql_ql/ast/internal/TreeSitter.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -945,7 +945,7 @@ module QL {
945945
final override string getAPrimaryQlClass() { result = "Module" }
946946

947947
/** Gets the node corresponding to the field `implements`. */
948-
final AstNode getImplements(int i) { ql_module_implements(this, i, result) }
948+
final SignatureExpr getImplements(int i) { ql_module_implements(this, i, result) }
949949

950950
/** Gets the node corresponding to the field `name`. */
951951
final ModuleName getName() { ql_module_def(this, result) }

ql/ql/src/ql.dbscheme

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -601,13 +601,11 @@ ql_member_predicate_def(
601601
int return_type: @ql_memberPredicate_returnType_type ref
602602
);
603603

604-
@ql_module_implements_type = @ql_reserved_word | @ql_signature_expr
605-
606604
#keyset[ql_module, index]
607605
ql_module_implements(
608606
int ql_module: @ql_module ref,
609607
int index: int ref,
610-
unique int implements: @ql_module_implements_type ref
608+
unique int implements: @ql_signature_expr ref
611609
);
612610

613611
#keyset[ql_module, index]

0 commit comments

Comments
 (0)