Home
last modified time | relevance | path

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

/external/protobuf/ruby/ext/google/protobuf_c/
Dmessage.c492 EnumDescriptor* enumdesc = ruby_to_EnumDescriptor(desc); in enum_lookup() local
494 const char* name = upb_enumdef_iton(enumdesc->enumdef, num); in enum_lookup()
512 EnumDescriptor* enumdesc = ruby_to_EnumDescriptor(desc); in enum_resolve() local
515 bool found = upb_enumdef_ntoiz(enumdesc->enumdef, name, &num); in enum_resolve()
534 VALUE build_module_from_enumdesc(EnumDescriptor* enumdesc) { in build_module_from_enumdesc() argument
536 rb_intern(upb_enumdef_fullname(enumdesc->enumdef))); in build_module_from_enumdesc()
539 for (upb_enum_begin(&it, enumdesc->enumdef); in build_module_from_enumdesc()
557 get_def_obj(enumdesc->enumdef)); in build_module_from_enumdesc()
Drepeated_field.c531 VALUE enumdesc = rb_ivar_get(klass, descriptor_instancevar_interned); in validate_type_class() local
532 if (!RB_TYPE_P(enumdesc, T_DATA) || !RTYPEDDATA_P(enumdesc) || in validate_type_class()
533 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()
1551 rb_gc_mark(self->enumdesc); in EnumBuilderContext_mark()
1563 self->enumdesc = Qnil; in EnumBuilderContext_alloc()
1587 self->enumdesc = enumdef; in EnumBuilderContext_initialize()
1606 return enumdef_add_value(self->enumdesc, name, number); in EnumBuilderContext_value()
Dprotobuf.h149 VALUE enumdesc; member
275 VALUE EnumBuilderContext_initialize(VALUE _self, VALUE enumdesc);
/external/protobuf/src/google/protobuf/compiler/js/
Djs_generator.cc1426 const EnumDescriptor* enumdesc, in FindProvidesForEnum() argument
1428 string name = GetPath(options, enumdesc); in FindProvidesForEnum()
2621 const EnumDescriptor* enumdesc) const { in GenerateEnum()
2627 "name", GetPath(options, enumdesc)); in GenerateEnum()
2629 for (int i = 0; i < enumdesc->value_count(); i++) { in GenerateEnum()
2630 const EnumValueDescriptor* value = enumdesc->value(i); in GenerateEnum()
2635 "comma", (i == enumdesc->value_count() - 1) ? "" : ","); in GenerateEnum()
2971 const EnumDescriptor* enumdesc = file->enum_type(j); in GenerateAll() local
2972 if (allowed_set.count(enumdesc) == 0) { in GenerateAll()
2976 string filename = GetEnumFileName(options, enumdesc); in GenerateAll()
[all …]
Djs_generator.h132 const EnumDescriptor* enumdesc,
266 const EnumDescriptor* enumdesc) const;