Lines Matching refs:enums
3514 const upb_enumdef *enums;
4997 e = (upb_enumdef*)&ctx->file->enums[ctx->file->enum_count++];
5011 "enums must contain at least one value (%s)",
5056 const google_protobuf_EnumDescriptorProto *const *enums;
5107 /* This message is built. Now build nested messages and enums. */
5109 enums = google_protobuf_DescriptorProto_enum_type(msg_proto, &n);
5111 CHK(create_enumdef(ctx, m->full_name, enums[i]));
5240 const google_protobuf_EnumDescriptorProto *const *enums;
5249 file->enums = upb_malloc(alloc, sizeof(*file->enums) * counts.enum_count);
5253 CHK_OOM(counts.enum_count == 0 || file->enums);
5336 /* Create enums. */
5337 enums = google_protobuf_FileDescriptorProto_enum_type(file_proto, &n);
5339 CHK(create_enumdef(ctx, file->package, enums[i]));
5434 return i < 0 || i >= f->enum_count ? NULL : &f->enums[i];