Lines Matching refs:enums
3069 const upb_enumdef *enums;
4526 e = (upb_enumdef*)&ctx->file->enums[ctx->file->enum_count++];
4540 "enums must contain at least one value (%s)",
4585 const google_protobuf_EnumDescriptorProto *const *enums;
4636 /* This message is built. Now build nested messages and enums. */
4638 enums = google_protobuf_DescriptorProto_enum_type(msg_proto, &n);
4640 CHK(create_enumdef(ctx, m->full_name, enums[i]));
4769 const google_protobuf_EnumDescriptorProto *const *enums;
4778 file->enums = upb_malloc(alloc, sizeof(*file->enums) * counts.enum_count);
4782 CHK_OOM(counts.enum_count == 0 || file->enums);
4865 /* Create enums. */
4866 enums = google_protobuf_FileDescriptorProto_enum_type(file_proto, &n);
4868 CHK(create_enumdef(ctx, file->package, enums[i]));
4964 return i < 0 || i >= f->enum_count ? NULL : &f->enums[i];
13707 /* For now, we always emit symbolic names for enums. We may want an