return argument(foo, completer, delimiter);
}
}
} else if (last instanceof Event.Argument) {
Event.Argument eventArgument = (Event.Argument)last;
ArgumentDescriptor argument = eventArgument.getParameter();
if (separator != null) {
switch (argument.getMultiplicity()) {
case SINGLE:
List<? extends ArgumentDescriptor> arguments = eventArgument.getCommand().getArguments();
int index = arguments.indexOf(argument) + 1;
if (index < arguments.size()) {
ArgumentDescriptor nextArg = arguments.get(index);
return new ParameterCompletion("", delimiter, nextArg, completer);
} else {
return new EmptyCompletion();
}
case MULTI: