ConstantVisitor initializerVisitor = new ConstantVisitor(typeProvider, parameterMap);
String superName = null;
NodeList<Expression> superArguments = null;
for (ConstructorInitializer initializer : initializers) {
if (initializer instanceof ConstructorFieldInitializer) {
ConstructorFieldInitializer constructorFieldInitializer = (ConstructorFieldInitializer) initializer;
Expression initializerExpression = constructorFieldInitializer.getExpression();
EvaluationResultImpl evaluationResult = initializerExpression.accept(initializerVisitor);
if (evaluationResult instanceof ValidResult) {
DartObjectImpl value = ((ValidResult) evaluationResult).getValue();
String fieldName = constructorFieldInitializer.getFieldName().getName();
fieldMap.put(fieldName, value);
}
} else if (initializer instanceof SuperConstructorInvocation) {
SuperConstructorInvocation superConstructorInvocation = (SuperConstructorInvocation) initializer;
SimpleIdentifier name = superConstructorInvocation.getConstructorName();