Skip to content

Commit

Permalink
Fixed removal of missing arguments for remove parameter refactoring.
Browse files Browse the repository at this point in the history
  • Loading branch information
MDoerner committed Mar 6, 2018
1 parent 6c90dc4 commit e8c2937
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -178,7 +178,7 @@ private void RemoveCallArguments(VBAParser.ArgumentListContext argList, Qualifie
break;
}

if (args.Count > i && args[i].positionalArgument() != null)
if (args.Count > i && (args[i].positionalArgument() != null || args[i].missingArgument() != null))
{
rewriter.Remove(args[i]);
}
Expand Down

0 comments on commit e8c2937

Please sign in to comment.