Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 747c320

Browse files
committed
JS: cache getEnclosingContainer
1 parent 498e4d2 commit 747c320

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

  • javascript/ql/src/semmle/javascript

javascript/ql/src/semmle/javascript/AST.qll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -317,6 +317,7 @@ class ExprOrStmt extends @exprorstmt, ControlFlowNode, ASTNode { }
317317
*/
318318
class StmtContainer extends @stmt_container, ASTNode {
319319
/** Gets the innermost enclosing container in which this container is nested. */
320+
cached
320321
StmtContainer getEnclosingContainer() { none() }
321322

322323
/**

0 commit comments

Comments
 (0)