MaybeReachingVariableUse( ControlFlowGraph<Node> cfg, Scope jsScope, AbstractCompiler compiler, Es6SyntacticScopeCreator scopeCreator) { super(cfg, new ReachingUsesJoinOp()); this.escaped = new HashSet<>(); this.allVarsInFn = new HashMap<>(); this.orderedVars = new ArrayList<>(); // TODO(user): Maybe compute it somewhere else and re-use the escape // local set here. computeEscaped(jsScope.getParent(), escaped, compiler, scopeCreator); NodeUtil.getAllVarsDeclaredInFunction( allVarsInFn, orderedVars, compiler, scopeCreator, jsScope.getParent()); }
MaybeReachingVariableUse( ControlFlowGraph<Node> cfg, Scope jsScope, AbstractCompiler compiler) { super(cfg, new ReachingUsesJoinOp()); this.jsScope = jsScope; this.escaped = new HashSet<Var>(); // TODO(user): Maybe compute it somewhere else and re-use the escape // local set here. computeEscaped(jsScope, escaped, compiler); }