if (functionDeclaration.getClassDeclaration() != null) {
ClassDeclaration superType = functionDeclaration.getClassDeclaration().getSuperTypeDeclaration();
if (superType != null) {
FunctionDeclaration superConstructor = superType.getConstructor();
if (superConstructor != null) {
Parameters superParameters = superConstructor.getParams();
boolean first = true;
while (superParameters != null && superParameters.getHead().getOptInitializer() == null) {
if (first) {
first = false;
} else {
superCallCode.append(", ");
}
superCallCode.append(VariableDeclaration.getDefaultValue(superParameters.getHead().getOptTypeRelation()));
superParameters = superParameters.getTail();
}
}
}
}
superCallCode.append(");");