in src/plugins/builder.ts [207:239]
function buildObjectInstanceMethodForValueType(
objectType: ObjectSpec.Type,
): ObjC.Method {
return {
preprocessors: [],
belongsToProtocol: null,
code: [
'return ' +
ObjectSpecCodeUtils.methodInvocationForConstructor(
objectType,
valueGeneratorForInvokingInitializerWithAttribute,
) +
';',
],
comments: [],
compilerAttributes: [],
keywords: [
{
name: 'build',
argument: null,
},
],
returnType: {
type: {
name: objectType.typeName,
reference: ObjectSpecUtils.typeReferenceForValueTypeWithName(
objectType.typeName,
),
},
modifiers: [],
},
};
}