mirror of
https://github.com/github/codeql.git
synced 2026-05-11 01:39:28 +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
|
||||
|
||||
Reference in New Issue
Block a user