Skip to content

Commit 5dc5c8e

Browse files
authored
Merge pull request github#12629 from erik-krogh/qlTreeSitterQll
QL: regen TreeSitter.qll
2 parents a93c2ec + 4bc6a09 commit 5dc5c8e

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

ql/ql/src/codeql_ql/StructuredLogs.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,7 @@ module KindPredicatesLog {
405405
or
406406
cand.(InLayer).getComputeRecursiveEvent() = recursive
407407
) and
408-
cand.hasLocationInfo(filepath, startline, _, _, _)
408+
cand.getLocation().hasLocationInfo(filepath, startline, _, _, _)
409409
|
410410
cand order by filepath, startline
411411
)

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

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1866,12 +1866,6 @@ module JSON {
18661866
/** Gets the location of this element. */
18671867
final L::Location getLocation() { json_ast_node_info(this, _, _, result) }
18681868

1869-
predicate hasLocationInfo(
1870-
string filepath, int startline, int startcolumn, int endline, int endcolumn
1871-
) {
1872-
this.getLocation().hasLocationInfo(filepath, startline, startcolumn, endline, endcolumn)
1873-
}
1874-
18751869
/** Gets the parent of this element. */
18761870
final AstNode getParent() { json_ast_node_info(this, result, _, _) }
18771871

0 commit comments

Comments
 (0)