Lines Matching refs:newf
270 func addFieldInfo(typ reflect.Type, tinfo *typeInfo, newf *fieldInfo) error {
276 if oldf.flags&fMode != newf.flags&fMode {
279 if oldf.xmlns != "" && newf.xmlns != "" && oldf.xmlns != newf.xmlns {
282 minl := min(len(newf.parents), len(oldf.parents))
284 if oldf.parents[p] != newf.parents[p] {
288 if len(oldf.parents) > len(newf.parents) {
289 if oldf.parents[len(newf.parents)] == newf.name {
292 } else if len(oldf.parents) < len(newf.parents) {
293 if newf.parents[len(oldf.parents)] == oldf.name {
297 if newf.name == oldf.name {
304 tinfo.fields = append(tinfo.fields, *newf)
311 if len(tinfo.fields[i].idx) < len(newf.idx) {
319 if len(oldf.idx) == len(newf.idx) {
321 f2 := typ.FieldByIndex(newf.idx)
333 tinfo.fields = append(tinfo.fields, *newf)