JS: cache getEnclosingContainer

This commit is contained in:
Asger F
2019-07-16 15:50:19 +01:00
parent 498e4d2d57
commit 747c320c35

View File

@@ -317,6 +317,7 @@ class ExprOrStmt extends @exprorstmt, ControlFlowNode, ASTNode { }
*/
class StmtContainer extends @stmt_container, ASTNode {
/** Gets the innermost enclosing container in which this container is nested. */
cached
StmtContainer getEnclosingContainer() { none() }
/**