NameTok varg = null;
NameTok kwarg = null;
for (Iterator<SimpleNode> iter = args.iterator(); iter.hasNext();) {
SimpleNode node = iter.next();
if (node.getId() == JJTEXTRAKEYWORDLIST) {
ExtraArg a = (ExtraArg) node;
kwarg = a.tok;
addSpecialsAndClearOriginal(a, kwarg);
} else if (node.getId() == JJTEXTRAARGLIST) {
ExtraArg a = (ExtraArg) node;
varg = a.tok;
addSpecialsAndClearOriginal(a, varg);
}
}
return new NameTok[] { varg, kwarg };