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