Lines Matching refs:checked
297 parents []*ast.Struct, checked map[string]bool, isArg bool) {
302 if checked[s.Name.Name] {
305 checked[s.Name.Name] = true
311 comp.checkLenType(fld.Type, fld.Name.Name, fields, parents, checked, false)
321 comp.checkLenType(arg, name, fields, parents, checked, argDesc.IsArg)
474 checked := make(map[structDir]bool)
479 comp.checkTypeCtors(arg.Type, prog.DirIn, true, ctors, checked)
482 comp.checkTypeCtors(n.Ret, prog.DirOut, true, ctors, checked)
500 ctors map[string]bool, checked map[structDir]bool) {
521 if checked[key] {
524 checked[key] = true
526 comp.checkTypeCtors(fld.Type, dir, false, ctors, checked)
536 comp.checkTypeCtors(arg, dir, desc.Args[i].IsArg, ctors, checked)
542 checked := make(map[string]bool)
549 comp.checkStructRecursion(checked, n, path)
577 func (comp *compiler) checkStructRecursion(checked map[string]bool, n *ast.Struct, path []pathElem)…
579 if checked[name] {
593 checked[name] = true
602 comp.recurseField(checked, f.Type, path)
605 checked[name] = true
608 func (comp *compiler) recurseField(checked map[string]bool, t *ast.Type, path []pathElem) {
611 comp.checkStructRecursion(checked, comp.structs[t.Ident], path)
620 comp.recurseField(checked, arg, path)