Lines Matching refs:fielddef
387 upb_fielddef* mut_field_def = check_field_notfrozen(def->fielddef); in Descriptor_add_field()
391 add_def_obj(def->fielddef, obj); in Descriptor_add_field()
486 upb_fielddef_unref(self->fielddef, &self->fielddef); in FieldDescriptor_free()
500 upb_fielddef* fielddef = upb_fielddef_new(&self->fielddef); in FieldDescriptor_alloc() local
501 upb_fielddef_setpacked(fielddef, false); in FieldDescriptor_alloc()
502 self->fielddef = fielddef; in FieldDescriptor_alloc()
535 return rb_str_maybe_null(upb_fielddef_name(self->fielddef)); in FieldDescriptor_name()
547 upb_fielddef* mut_def = check_field_notfrozen(self->fielddef); in FieldDescriptor_name_set()
676 if (!upb_fielddef_typeisset(self->fielddef)) { in FieldDescriptor_type()
679 return descriptortype_to_ruby(upb_fielddef_descriptortype(self->fielddef)); in FieldDescriptor_type()
691 upb_fielddef* mut_def = check_field_notfrozen(self->fielddef); in FieldDescriptor_type_set()
707 switch (upb_fielddef_label(self->fielddef)) { in FieldDescriptor_label()
730 upb_fielddef* mut_def = check_field_notfrozen(self->fielddef); in FieldDescriptor_label_set()
767 return INT2NUM(upb_fielddef_number(self->fielddef)); in FieldDescriptor_number()
779 upb_fielddef* mut_def = check_field_notfrozen(self->fielddef); in FieldDescriptor_number_set()
796 if (!upb_fielddef_hassubdef(self->fielddef)) { in FieldDescriptor_submsg_name()
799 return rb_str_maybe_null(upb_fielddef_subdefname(self->fielddef)); in FieldDescriptor_submsg_name()
814 upb_fielddef* mut_def = check_field_notfrozen(self->fielddef); in FieldDescriptor_submsg_name_set()
816 if (!upb_fielddef_hassubdef(self->fielddef)) { in FieldDescriptor_submsg_name_set()
837 if (!upb_fielddef_hassubdef(self->fielddef)) { in FieldDescriptor_subtype()
840 def = upb_fielddef_subdef(self->fielddef); in FieldDescriptor_subtype()
858 if (msg->descriptor->msgdef != upb_fielddef_containingtype(self->fielddef)) { in FieldDescriptor_get()
861 return layout_get(msg->descriptor->layout, Message_data(msg), self->fielddef); in FieldDescriptor_get()
876 if (msg->descriptor->msgdef != upb_fielddef_containingtype(self->fielddef)) { in FieldDescriptor_set()
879 layout_set(msg->descriptor->layout, Message_data(msg), self->fielddef, value); in FieldDescriptor_set()
970 upb_fielddef* mut_field_def = check_field_notfrozen(def->fielddef); in OneofDescriptor_add_field()
974 add_def_obj(def->fielddef, obj); in OneofDescriptor_add_field()
1232 VALUE fielddef = rb_class_new_instance(0, NULL, cFieldDescriptor); in msgdef_add_field() local
1235 rb_funcall(fielddef, rb_intern("label="), 1, ID2SYM(rb_intern(label))); in msgdef_add_field()
1236 rb_funcall(fielddef, rb_intern("name="), 1, name_str); in msgdef_add_field()
1237 rb_funcall(fielddef, rb_intern("type="), 1, type); in msgdef_add_field()
1238 rb_funcall(fielddef, rb_intern("number="), 1, number); in msgdef_add_field()
1246 rb_funcall(fielddef, rb_intern("submsg_name="), 1, type_class); in msgdef_add_field()
1249 rb_funcall(msgdef, rb_intern("add_field"), 1, fielddef); in msgdef_add_field()
1250 return fielddef; in msgdef_add_field()