Home
last modified time | relevance | path

Searched refs:enumdesc (Results 1 – 6 of 6) sorted by relevance

/third_party/protobuf/ruby/ext/google/protobuf_c/
Dmessage.c774 EnumDescriptor* enumdesc = ruby_to_EnumDescriptor(desc); in enum_lookup() local
776 const char* name = upb_enumdef_iton(enumdesc->enumdef, num); in enum_lookup()
794 EnumDescriptor* enumdesc = ruby_to_EnumDescriptor(desc); in enum_resolve() local
797 bool found = upb_enumdef_ntoiz(enumdesc->enumdef, name, &num); in enum_resolve()
817 EnumDescriptor* enumdesc = ruby_to_EnumDescriptor(_enumdesc); in build_module_from_enumdesc() local
819 rb_intern(upb_enumdef_fullname(enumdesc->enumdef))); in build_module_from_enumdesc()
822 for (upb_enum_begin(&it, enumdesc->enumdef); in build_module_from_enumdesc()
Drepeated_field.c562 VALUE enumdesc = rb_ivar_get(klass, descriptor_instancevar_interned); in validate_type_class() local
563 if (!RB_TYPE_P(enumdesc, T_DATA) || !RTYPEDDATA_P(enumdesc) || in validate_type_class()
564 RTYPEDDATA_TYPE(enumdesc) != &_EnumDescriptor_type) { in validate_type_class()
/third_party/protobuf/src/google/protobuf/compiler/js/
Djs_generator.h176 io::Printer* printer, const EnumDescriptor* enumdesc,
312 const EnumDescriptor* enumdesc) const;
Djs_generator.cc1727 const EnumDescriptor* enumdesc, in FindProvidesForEnum() argument
1729 std::string name = GetEnumPath(options, enumdesc); in FindProvidesForEnum()
3354 const EnumDescriptor* enumdesc) const { in GenerateEnum()
3360 "enumprefix", GetEnumPathPrefix(options, enumdesc), "name", in GenerateEnum()
3361 enumdesc->name()); in GenerateEnum()
3362 printer->Annotate("name", enumdesc); in GenerateEnum()
3366 for (int i = 0; i < enumdesc->value_count(); i++) { in GenerateEnum()
3367 if (enumdesc->options().allow_alias() && in GenerateEnum()
3368 !used_name.insert(ToEnumCase(enumdesc->value(i)->name())).second) { in GenerateEnum()
3374 const EnumValueDescriptor* value = enumdesc->value(i); in GenerateEnum()
[all …]
/third_party/grpc/third_party/upb/upbc/
Dprotoc-gen-upb.cc557 for (auto enumdesc : this_file_enums) { in WriteHeader() local
559 DumpEnumValues(enumdesc, output); in WriteHeader()
560 output("} $0;\n\n", ToCIdent(enumdesc->full_name())); in WriteHeader()
Dgenerator.cc665 for (auto enumdesc : this_file_enums) { in WriteHeader() local
667 DumpEnumValues(enumdesc, output); in WriteHeader()
668 output("} $0;\n\n", ToCIdent(enumdesc->full_name())); in WriteHeader()