Home
last modified time | relevance | path

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

/external/protobuf/ruby/ext/google/protobuf_c/
Dmessage.c763 EnumDescriptor* enumdesc = ruby_to_EnumDescriptor(desc); in enum_lookup() local
765 const char* name = upb_enumdef_iton(enumdesc->enumdef, num); in enum_lookup()
783 EnumDescriptor* enumdesc = ruby_to_EnumDescriptor(desc); in enum_resolve() local
786 bool found = upb_enumdef_ntoiz(enumdesc->enumdef, name, &num); in enum_resolve()
805 VALUE build_module_from_enumdesc(EnumDescriptor* enumdesc) { in build_module_from_enumdesc() argument
807 rb_intern(upb_enumdef_fullname(enumdesc->enumdef))); in build_module_from_enumdesc()
810 for (upb_enum_begin(&it, enumdesc->enumdef); in build_module_from_enumdesc()
827 get_def_obj(enumdesc->enumdef)); in build_module_from_enumdesc()
Drepeated_field.c540 VALUE enumdesc = rb_ivar_get(klass, descriptor_instancevar_interned); in validate_type_class() local
541 if (!RB_TYPE_P(enumdesc, T_DATA) || !RTYPEDDATA_P(enumdesc) || in validate_type_class()
542 RTYPEDDATA_TYPE(enumdesc) != &_EnumDescriptor_type) { in validate_type_class()
Ddefs.c145 EnumDescriptor* enumdesc) { in add_enumdesc_to_pool() argument
147 upb_symtab_add(self->symtab, (upb_def**)&enumdesc->enumdef, 1, in add_enumdesc_to_pool()
1886 rb_gc_mark(self->enumdesc); in EnumBuilderContext_mark()
1898 self->enumdesc = Qnil; in EnumBuilderContext_alloc()
1922 self->enumdesc = enumdef; in EnumBuilderContext_initialize()
1941 return enumdef_add_value(self->enumdesc, name, number); in EnumBuilderContext_value()
Dprotobuf.h153 VALUE enumdesc; member
309 VALUE EnumBuilderContext_initialize(VALUE _self, VALUE enumdesc);
/external/protobuf/src/google/protobuf/compiler/js/
Djs_generator.h173 io::Printer* printer, const EnumDescriptor* enumdesc,
309 const EnumDescriptor* enumdesc) const;
Djs_generator.cc1740 const EnumDescriptor* enumdesc, in FindProvidesForEnum() argument
1742 std::string name = GetEnumPath(options, enumdesc); in FindProvidesForEnum()
3367 const EnumDescriptor* enumdesc) const { in GenerateEnum()
3373 "enumprefix", GetEnumPathPrefix(options, enumdesc), "name", in GenerateEnum()
3374 enumdesc->name()); in GenerateEnum()
3375 printer->Annotate("name", enumdesc); in GenerateEnum()
3377 for (int i = 0; i < enumdesc->value_count(); i++) { in GenerateEnum()
3378 const EnumValueDescriptor* value = enumdesc->value(i); in GenerateEnum()
3382 (i == enumdesc->value_count() - 1) ? "" : ","); in GenerateEnum()
3858 const EnumDescriptor* enumdesc = file->enum_type(j); in GenerateAll() local
[all …]
/external/rust/crates/grpcio-sys/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()