Skip to content

Commit

Permalink
fixed files form Closure #96
Browse files Browse the repository at this point in the history
  • Loading branch information
tdurieux committed Mar 7, 2017
1 parent b540a23 commit 5866873
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1406,10 +1406,13 @@ private void visitParameterList(NodeTraversal t, Node call,
Node parameter = null;
Node argument = null;
while (arguments.hasNext() &&
parameters.hasNext()) {
(parameters.hasNext() ||
parameter != null && parameter.isVarArgs())) {
// If there are no parameters left in the list, then the while loop
// above implies that this must be a var_args function.
if (parameters.hasNext()) {
parameter = parameters.next();
}
argument = arguments.next();
ordinal++;

Expand Down

0 comments on commit 5866873

Please sign in to comment.