public void apply(final MutableFieldDeclaration p) {
p.markAsInitializedBy(it);
String _simpleName = p.getSimpleName();
TypeReference _type = p.getType();
TypeReference _orObject = Util.this.orObject(_type);
final MutableParameterDeclaration param = it.addParameter(_simpleName, _orObject);
fieldToParameter.put(p, param);
}
};
IterableExtensions.forEach(_finalFields, _function_1);
StringConcatenationClient _client = new StringConcatenationClient() {
@Override
protected void appendTo(StringConcatenationClient.TargetStringConcatenation _builder) {
_builder.append("super(");
final Function1<ResolvedParameter, String> _function = new Function1<ResolvedParameter, String>() {
public String apply(final ResolvedParameter it) {
ParameterDeclaration _declaration = it.getDeclaration();
return _declaration.getSimpleName();
}
};
String _join = IterableExtensions.join(superParameters, ", ", _function);
_builder.append(_join, "");
_builder.append(");");
_builder.newLineIfNotEmpty();
{
MutableTypeDeclaration _declaringType = it.getDeclaringType();
Iterable<? extends MutableFieldDeclaration> _finalFields = Util.this.getFinalFields(_declaringType);
for(final MutableFieldDeclaration arg : _finalFields) {
_builder.append("this.");
String _simpleName = arg.getSimpleName();
_builder.append(_simpleName, "");
_builder.append(" = ");
MutableParameterDeclaration _get = fieldToParameter.get(arg);
String _simpleName_1 = _get.getSimpleName();
_builder.append(_simpleName_1, "");
_builder.append(";");
_builder.newLineIfNotEmpty();
}
}