renamed "exprContainers" to "expr_containers"

This commit is contained in:
Erik Krogh Kristensen
2020-09-04 11:51:49 +02:00
parent 30ba7d29a1
commit 83b89fa52d
223 changed files with 3317 additions and 3310 deletions

View File

@@ -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) }

View File

@@ -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

View File

@@ -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,

View File

@@ -11280,7 +11280,7 @@
</dependencies>
</relation>
<relation>
<name>exprContainers</name>
<name>expr_containers</name>
<cardinality>5495305</cardinality>
<columnsizes>
<e>