• Home
  • Raw
  • Download

Lines Matching refs:enumdef

147       upb_symtab_add(self->symtab, (upb_def**)&enumdesc->enumdef, 1,  in add_enumdesc_to_pool()
1283 upb_enumdef_unref(self->enumdef, &self->enumdef); in EnumDescriptor_free()
1298 self->enumdef = upb_enumdef_new(&self->enumdef); in EnumDescriptor_alloc()
1331 upb_filedef_addenum(file_descriptor->filedef, self->enumdef, in EnumDescriptor_initialize()
1347 return get_def_obj(upb_def_file(self->enumdef)); in EnumDescriptor_file_descriptor()
1358 return rb_str_maybe_null(upb_enumdef_fullname(self->enumdef)); in EnumDescriptor_name()
1370 upb_enumdef* mut_def = check_enum_notfrozen(self->enumdef); in EnumDescriptor_name_set()
1387 upb_enumdef* mut_def = check_enum_notfrozen(self->enumdef); in EnumDescriptor_add_value()
1406 if (upb_enumdef_ntoiz(self->enumdef, name_str, &val)) { in EnumDescriptor_lookup_name()
1423 const char* name = upb_enumdef_iton(self->enumdef, val); in EnumDescriptor_lookup_value()
1442 for (upb_enum_begin(&it, self->enumdef); in EnumDescriptor_each()
1462 if (!upb_def_isfrozen((const upb_def*)self->enumdef)) { in EnumDescriptor_enummodule()
1920 VALUE EnumBuilderContext_initialize(VALUE _self, VALUE enumdef) { in EnumBuilderContext_initialize() argument
1922 self->enumdesc = enumdef; in EnumBuilderContext_initialize()
1926 static VALUE enumdef_add_value(VALUE enumdef, in enumdef_add_value() argument
1928 rb_funcall(enumdef, rb_intern("add_value"), 2, name, number); in enumdef_add_value()
2035 VALUE enumdef = in FileBuilderContext_add_enum() local
2037 VALUE ctx = rb_class_new_instance(1, &enumdef, cEnumBuilderContext); in FileBuilderContext_add_enum()
2039 rb_funcall(enumdef, rb_intern("name="), 1, name); in FileBuilderContext_add_enum()
2041 rb_ary_push(self->pending_list, enumdef); in FileBuilderContext_add_enum()
2175 VALUE enumdef = in Builder_add_enum() local
2177 VALUE ctx = rb_class_new_instance(1, &enumdef, cEnumBuilderContext); in Builder_add_enum()
2179 rb_funcall(enumdef, rb_intern("name="), 1, name); in Builder_add_enum()
2181 rb_ary_push(self->pending_list, enumdef); in Builder_add_enum()
2198 static void proto3_validate_enumdef(const upb_enumdef* enumdef) { in proto3_validate_enumdef() argument
2201 const char* lookup = upb_enumdef_iton(enumdef, 0); in proto3_validate_enumdef()
2238 self->defs[i] = (upb_def*)ruby_to_EnumDescriptor(def_rb)->enumdef; in Builder_finalize_to_pool()