DartObjectImpl[] argumentValues = new DartObjectImpl[argumentCount];
HashMap<String, DartObjectImpl> namedArgumentValues = new HashMap<String, DartObjectImpl>();
for (int i = 0; i < argumentCount; i++) {
Expression argument = arguments.get(i);
if (argument instanceof NamedExpression) {
NamedExpression namedExpression = (NamedExpression) argument;
String name = namedExpression.getName().getLabel().getName();
namedArgumentValues.put(name, constantVisitor.valueOf(namedExpression.getExpression()));
argumentValues[i] = constantVisitor.getNull();
} else {
argumentValues[i] = constantVisitor.valueOf(argument);
}
}