- Sort Score
- Result 10 results
- Languages All
Results 1 - 8 of 8 for cycleError (0.11 sec)
-
src/cmd/compile/internal/types2/decl.go
if nval == 0 && ndef > 0 { return true } } check.cycleError(cycle, firstInSrc(cycle)) return false } // cycleError reports a declaration cycle starting with the object at cycle[start]. func (check *Checker) cycleError(cycle []Object, start int) { // name returns the (possibly qualified) object name. // This is needed because with generic types, cycles
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 29.6K bytes - Viewed (0) -
src/go/types/decl.go
if nval == 0 && ndef > 0 { return true } } check.cycleError(cycle, firstInSrc(cycle)) return false } // cycleError reports a declaration cycle starting with the object at cycle[start]. func (check *Checker) cycleError(cycle []Object, start int) { // name returns the (possibly qualified) object name. // This is needed because with generic types, cycles
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 31K bytes - Viewed (0) -
src/cmd/compile/internal/types2/validtype.go
// is in nest. Specifically t may appear in path with an earlier index than the // index of t in nest. Search again. for start, p := range path { if Identical(p, t) { check.cycleError(makeObjList(path[start:]), 0) return false } } panic("cycle start not found") } } // No cycle was found. Check the RHS of t.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Mar 15 13:22:37 UTC 2024 - 10.2K bytes - Viewed (0) -
src/go/types/validtype.go
// is in nest. Specifically t may appear in path with an earlier index than the // index of t in nest. Search again. for start, p := range path { if Identical(p, t) { check.cycleError(makeObjList(path[start:]), 0) return false } } panic("cycle start not found") } } // No cycle was found. Check the RHS of t.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 03 18:48:38 UTC 2024 - 10.3K bytes - Viewed (0) -
src/cmd/compile/internal/types2/named.go
var path []Object // objects encountered, for cycle reporting loop: for { seen[n] = len(seen) path = append(path, n.obj) n = n1 if i, ok := seen[n]; ok { // cycle check.cycleError(path[i:], firstInSrc(path[i:])) u = Typ[Invalid] break } u = n.Underlying() switch u1 := u.(type) { case nil: u = Typ[Invalid] break loop default: break loop
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 15 20:03:31 UTC 2024 - 23.9K bytes - Viewed (0) -
src/go/types/named.go
var path []Object // objects encountered, for cycle reporting loop: for { seen[n] = len(seen) path = append(path, n.obj) n = n1 if i, ok := seen[n]; ok { // cycle check.cycleError(path[i:], firstInSrc(path[i:])) u = Typ[Invalid] break } u = n.Underlying() switch u1 := u.(type) { case nil: u = Typ[Invalid] break loop default: break loop
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 15 20:03:31 UTC 2024 - 24K bytes - Viewed (0) -
src/cmd/compile/internal/types2/call.go
return } } check.exprOrType(x, e.X, false) switch x.mode { case typexpr: // don't crash for "type T T.x" (was go.dev/issue/51509) if def != nil && def.typ == x.typ { check.cycleError([]Object{def}, 0) goto Error } case builtin: check.errorf(e.Pos(), UncalledBuiltin, "cannot select on %s", x) goto Error case invalid: goto Error }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 31.5K bytes - Viewed (0) -
src/go/types/call.go
return } } check.exprOrType(x, e.X, false) switch x.mode { case typexpr: // don't crash for "type T T.x" (was go.dev/issue/51509) if def != nil && def.typ == x.typ { check.cycleError([]Object{def}, 0) goto Error } case builtin: // types2 uses the position of '.' for the error check.errorf(e.Sel, UncalledBuiltin, "cannot select on %s", x) goto Error case invalid:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 33.5K bytes - Viewed (0)