|
|
@ -107,10 +107,8 @@ static NSArray *NewFieldsArrayForHasIndex(int hasIndex, NSArray *allMessageField |
|
|
|
NSAssert((flags & GPBDescriptorInitializationFlag_ClosedEnumSupportKnown) != 0, |
|
|
|
NSAssert((flags & GPBDescriptorInitializationFlag_ClosedEnumSupportKnown) != 0, |
|
|
|
@"Internal error: close enum should be known"); |
|
|
|
@"Internal error: close enum should be known"); |
|
|
|
|
|
|
|
|
|
|
|
// `messageName` and `fileDescription` should both be set or both be unset depending on if this is |
|
|
|
NSAssert((messageName != nil), @"Internal error: missing messageName"); |
|
|
|
// being called from current code generation or legacy code generation. |
|
|
|
NSAssert((fileDescription != NULL), @"Internal error: missing fileDescription"); |
|
|
|
NSAssert((messageName == nil) == (fileDescription == NULL), |
|
|
|
|
|
|
|
@"name and fileDescription should always be provided together"); |
|
|
|
|
|
|
|
#endif |
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
NSMutableArray *fields = |
|
|
|
NSMutableArray *fields = |
|
|
|