Skip to content

Commit

Permalink
fixed files form Closure #8
Browse files Browse the repository at this point in the history
  • Loading branch information
tdurieux committed Mar 7, 2017
1 parent 034508b commit 543985e
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -201,10 +201,14 @@ private boolean canBeRedeclared(Node n, Scope s) {
Var var = s.getVar(lhs.getString());
return var != null
&& var.getScope() == s
&& !isNamedParameter(var)
&& !blacklistedVars.contains(var);
}
}

private boolean isNamedParameter(Var v) {
return v.getParentNode().isParamList();
}

private void applyCollapses() {
for (Collapse collapse : collapses) {
Expand Down

0 comments on commit 543985e

Please sign in to comment.