Lines Matching refs:subdef
178 const upb_def *subdef; in upb_validate_field() local
186 subdef = upb_fielddef_subdef(f); in upb_validate_field()
187 if (subdef == NULL) { in upb_validate_field()
193 if (!upb_def_isfrozen(subdef) && !subdef->came_from_user) { in upb_validate_field()
240 const upb_msgdef *subdef = upb_fielddef_msgsubdef(f); in upb_validate_field() local
241 if (upb_msgdef_mapentry(subdef) && !upb_fielddef_isseq(f)) { in upb_validate_field()
1263 static bool upb_subdef_typecheck(upb_fielddef *f, const upb_def *subdef, in upb_subdef_typecheck() argument
1266 if (upb_dyncast_msgdef(subdef)) return true; in upb_subdef_typecheck()
1270 if (upb_dyncast_enumdef(subdef)) return true; in upb_subdef_typecheck()
1287 bool upb_fielddef_setsubdef(upb_fielddef *f, const upb_def *subdef, in upb_fielddef_setsubdef() argument
1291 if (subdef && !upb_subdef_typecheck(f, subdef, s)) return false; in upb_fielddef_setsubdef()
1293 f->sub.def = subdef; in upb_fielddef_setsubdef()
1299 bool upb_fielddef_setmsgsubdef(upb_fielddef *f, const upb_msgdef *subdef, in upb_fielddef_setmsgsubdef() argument
1301 return upb_fielddef_setsubdef(f, upb_msgdef_upcast(subdef), s); in upb_fielddef_setmsgsubdef()
1304 bool upb_fielddef_setenumsubdef(upb_fielddef *f, const upb_enumdef *subdef, in upb_fielddef_setenumsubdef() argument
1306 return upb_fielddef_setsubdef(f, upb_enumdef_upcast(subdef), s); in upb_fielddef_setenumsubdef()
2191 const upb_msgdef *subdef; in newformsg() local
2196 subdef = upb_downcast_msgdef(upb_fielddef_subdef(f)); in newformsg()
2197 if (upb_inttable_lookupptr(&s->tab, subdef, &subm_ent)) { in newformsg()
2200 upb_handlers *sub_mh = newformsg(subdef, &sub_mh, s); in newformsg()
3893 const upb_def *subdef; in upb_resolve_dfs() local
3896 subdef = upb_fielddef_subdef(f); in upb_resolve_dfs()
3899 if (def->base.group == subdef->base.group) continue; in upb_resolve_dfs()
3902 need_dup |= upb_resolve_dfs(subdef, addtab, new_owner, seen, s); in upb_resolve_dfs()
4079 upb_def *subdef = upb_resolvename(&addtab, base, name); in symtab_add() local
4080 if (subdef == NULL) { in symtab_add()
4081 subdef = upb_resolvename(&s->symtab, base, name); in symtab_add()
4083 if (subdef == NULL) { in symtab_add()
4087 } else if (!upb_fielddef_setsubdef(f, subdef, status)) { in symtab_add()