• Home
  • Raw
  • Download

Lines Matching refs:subdef

1252     const upb_def *subdef;  in upb_validate_field()  local
1260 subdef = upb_fielddef_subdef(f); in upb_validate_field()
1261 if (subdef == NULL) { in upb_validate_field()
1267 if (!upb_def_isfrozen(subdef) && !subdef->came_from_user) { in upb_validate_field()
1314 const upb_msgdef *subdef = upb_fielddef_msgsubdef(f); in upb_validate_field() local
1315 if (upb_msgdef_mapentry(subdef) && !upb_fielddef_isseq(f)) { in upb_validate_field()
2356 static bool upb_subdef_typecheck(upb_fielddef *f, const upb_def *subdef, in upb_subdef_typecheck() argument
2359 if (upb_dyncast_msgdef(subdef)) return true; in upb_subdef_typecheck()
2363 if (upb_dyncast_enumdef(subdef)) return true; in upb_subdef_typecheck()
2380 bool upb_fielddef_setsubdef(upb_fielddef *f, const upb_def *subdef, in upb_fielddef_setsubdef() argument
2384 if (subdef && !upb_subdef_typecheck(f, subdef, s)) return false; in upb_fielddef_setsubdef()
2386 f->sub.def = subdef; in upb_fielddef_setsubdef()
2392 bool upb_fielddef_setmsgsubdef(upb_fielddef *f, const upb_msgdef *subdef, in upb_fielddef_setmsgsubdef() argument
2394 return upb_fielddef_setsubdef(f, upb_msgdef_upcast(subdef), s); in upb_fielddef_setmsgsubdef()
2397 bool upb_fielddef_setenumsubdef(upb_fielddef *f, const upb_enumdef *subdef, in upb_fielddef_setenumsubdef() argument
2399 return upb_fielddef_setsubdef(f, upb_enumdef_upcast(subdef), s); in upb_fielddef_setenumsubdef()
3374 upb_def *subdef = upb_resolvename(&addtab, base, name); in symtab_add() local
3375 if (subdef == NULL) { in symtab_add()
3376 subdef = upb_resolvename(&s->symtab, base, name); in symtab_add()
3378 if (subdef == NULL) { in symtab_add()
3382 } else if (!upb_fielddef_setsubdef(f, subdef, status)) { in symtab_add()
3990 const upb_msgdef *subdef; in newformsg() local
3995 subdef = upb_downcast_msgdef(upb_fielddef_subdef(f)); in newformsg()
3996 if (upb_inttable_lookupptr(&s->tab, subdef, &subm_ent)) { in newformsg()
3999 upb_handlers *sub_mh = newformsg(subdef, &sub_mh, s); in newformsg()