mirror of
https://github.com/github/codeql.git
synced 2026-04-29 10:45:15 +02:00
renamed "exprContainers" to "expr_containers"
This commit is contained in:
@@ -120,3 +120,8 @@ deprecated predicate isForAwaitOf(ForOfStmt forof) { is_for_await_of(forof) }
|
||||
* Use `ExprOrType#getEnclosingStmt` instead.
|
||||
*/
|
||||
deprecated predicate enclosingStmt(ExprOrType expr, Stmt stmt) { enclosing_stmt(expr, stmt) }
|
||||
/**
|
||||
* Alias for the predicate `expr_containers` defined in the .dbscheme.
|
||||
* Use `ASTNode#getContainer()` instead.
|
||||
*/
|
||||
deprecated predicate exprContainers(ExprOrType expr, StmtContainer container) { expr_containers(expr, container) }
|
||||
|
||||
@@ -9,13 +9,13 @@ private import javascript
|
||||
|
||||
cached
|
||||
private StmtContainer getStmtContainer(NodeInStmtContainer node) {
|
||||
exprContainers(node, result)
|
||||
expr_containers(node, result)
|
||||
or
|
||||
stmt_containers(node, result)
|
||||
or
|
||||
// Properties
|
||||
exists(ASTNode parent | properties(node, parent, _, _, _) |
|
||||
exprContainers(parent, result)
|
||||
expr_containers(parent, result)
|
||||
or
|
||||
stmt_containers(parent, result)
|
||||
)
|
||||
@@ -27,7 +27,7 @@ private StmtContainer getStmtContainer(NodeInStmtContainer node) {
|
||||
or
|
||||
exists(Expr test |
|
||||
guard_node(node, _, test) and
|
||||
exprContainers(test, result)
|
||||
expr_containers(test, result)
|
||||
)
|
||||
or
|
||||
// JSDoc type annotations
|
||||
|
||||
@@ -220,7 +220,7 @@ literals (varchar(900) value: string ref,
|
||||
enclosing_stmt (unique int expr: @exprortype ref,
|
||||
int stmt: @stmt ref);
|
||||
|
||||
exprContainers (unique int expr: @exprortype ref,
|
||||
expr_containers (unique int expr: @exprortype ref,
|
||||
int container: @stmt_container ref);
|
||||
|
||||
arraySize (unique int ae: @arraylike ref,
|
||||
|
||||
@@ -11280,7 +11280,7 @@
|
||||
</dependencies>
|
||||
</relation>
|
||||
<relation>
|
||||
<name>exprContainers</name>
|
||||
<name>expr_containers</name>
|
||||
<cardinality>5495305</cardinality>
|
||||
<columnsizes>
|
||||
<e>
|
||||
|
||||
Reference in New Issue
Block a user