Home | History | Annotate | Download | only in protobuf_c

Lines Matching refs:enumdef

147       upb_symtab_add(self->symtab, (upb_def**)&enumdesc->enumdef, 1,
1010 upb_enumdef_unref(self->enumdef, &self->enumdef);
1025 self->enumdef = upb_enumdef_new(&self->enumdef);
1054 return rb_str_maybe_null(upb_enumdef_fullname(self->enumdef));
1066 upb_enumdef* mut_def = check_enum_notfrozen(self->enumdef);
1083 upb_enumdef* mut_def = check_enum_notfrozen(self->enumdef);
1102 if (upb_enumdef_ntoiz(self->enumdef, name_str, &val)) {
1119 const char* name = upb_enumdef_iton(self->enumdef, val);
1138 for (upb_enum_begin(&it, self->enumdef);
1158 if (!upb_def_isfrozen((const upb_def*)self->enumdef)) {
1585 VALUE EnumBuilderContext_initialize(VALUE _self, VALUE enumdef) {
1587 self->enumdesc = enumdef;
1591 static VALUE enumdef_add_value(VALUE enumdef,
1593 rb_funcall(enumdef, rb_intern("add_value"), 2, name, number);
1688 VALUE enumdef = rb_class_new_instance(0, NULL, cEnumDescriptor);
1689 VALUE ctx = rb_class_new_instance(1, &enumdef, cEnumBuilderContext);
1691 rb_funcall(enumdef, rb_intern("name="), 1, name);
1693 rb_ary_push(self->pending_list, enumdef);
1710 static void validate_enumdef(const upb_enumdef* enumdef) {
1713 const char* lookup = upb_enumdef_iton(enumdef, 0);
1747 self->defs[i] = (upb_def*)ruby_to_EnumDescriptor(def_rb)->enumdef;