68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
|
for (Property *property in properties)
[headerFile writeFormat: @"\t%@_%@;\n",
property.type, property.name];
if (properties.count > 0)
[headerFile writeString: @"}\n\n"];
for (Property *property in properties)
[headerFile writeFormat: @"@property %@%@;\n",
property.type, property.name];
[headerFile writeString: @"@end\n"
@"\n"
@"OF_ASSUME_NONNULL_END\n"];
[implFile writeFormat: @"#import \"%@\"\n"
@"\n"
|
|
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
|
>
|
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
|
for (Property *property in properties)
[headerFile writeFormat: @"\t%@_%@;\n",
property.type, property.name];
if (properties.count > 0)
[headerFile writeString: @"}\n\n"];
for (Property *property in properties) {
[headerFile writeString: @"@property "];
if (property.attributes.count > 0) {
bool first = true;
if ([property.attributes containsObject: @"nullable"])
[headerFile writeString:
@"OF_NULLABLE_PROPERTY "];
[headerFile writeString: @"("];
for (OFString *attribute in property.attributes) {
if ([attribute isEqual: @"nullable"])
continue;
if (!first)
[headerFile writeString: @", "];
[headerFile writeString: attribute];
first = false;
}
[headerFile writeString: @") "];
}
[headerFile writeFormat: @"%@_%@;\n",
property.type, property.name];
}
[headerFile writeString: @"@end\n"
@"\n"
@"OF_ASSUME_NONNULL_END\n"];
[implFile writeFormat: @"#import \"%@\"\n"
@"\n"
|