MustBeReachingVariableDef( ControlFlowGraph<Node> cfg, Scope jsScope, AbstractCompiler compiler, Es6SyntacticScopeCreator scopeCreator) { super(cfg, new MustDefJoin()); this.compiler = compiler; this.escaped = new HashSet<>(); this.allVarsInFn = new HashMap<>(); this.orderedVars = new ArrayList<>(); computeEscaped(jsScope.getParent(), escaped, compiler, scopeCreator); NodeUtil.getAllVarsDeclaredInFunction( allVarsInFn, orderedVars, compiler, scopeCreator, jsScope.getParent()); }
MustBeReachingVariableDef( ControlFlowGraph<Node> cfg, Scope jsScope, AbstractCompiler compiler) { super(cfg, new MustDefJoin()); this.jsScope = jsScope; this.compiler = compiler; this.escaped = new HashSet<Var>(); computeEscaped(jsScope, escaped, compiler); }