const go/types.Invalid
79 uses
go/types (current package)
alias.go#L128: if t != Typ[Invalid] {
alias.go#L181: if actual == Typ[Invalid] {
assignments.go#L124: lhs.typ = Typ[Invalid]
assignments.go#L133: lhs.typ = Typ[Invalid]
assignments.go#L159: lhs.typ = Typ[Invalid]
assignments.go#L172: lhs.typ = Typ[Invalid]
assignments.go#L223: return Typ[Invalid]
assignments.go#L230: return Typ[Invalid]
assignments.go#L239: return Typ[Invalid]
assignments.go#L243: return Typ[Invalid]
assignments.go#L433: v.typ = Typ[Invalid]
assignments.go#L465: v.typ = Typ[Invalid]
basic.go#L14: Invalid BasicKind = iota // type is invalid
check.go#L233: alias.typ = Typ[Invalid]
decl.go#L140: obj.typ = Typ[Invalid]
decl.go#L145: obj.typ = Typ[Invalid]
decl.go#L155: obj.typ = Typ[Invalid]
decl.go#L328: check.validAlias(tname, Typ[Invalid])
decl.go#L466: obj.typ = Typ[Invalid]
decl.go#L509: obj.typ = Typ[Invalid]
decl.go#L593: alias := check.newAlias(obj, Typ[Invalid])
decl.go#L653: named.underlying = Typ[Invalid]
decl.go#L663: named.underlying = Typ[Invalid]
decl.go#L710: bound = Typ[Invalid]
decl.go#L713: bound = Typ[Invalid]
decl.go#L753: tpar := check.newTypeParam(tname, Typ[Invalid]) // assigns type to tname as a side-effect
expr.go#L1014: x.typ = Typ[Invalid]
expr.go#L1025: x.typ = Typ[Invalid]
index.go#L204: x.typ = Typ[Invalid]
index.go#L390: typ = Typ[Invalid]
instantiate.go#L147: return Typ[Invalid]
instantiate.go#L161: return Typ[Invalid]
literals.go#L146: typ = Typ[Invalid]
lookup.go#L625: return Typ[Invalid], true
named.go#L578: u = Typ[Invalid]
named.go#L584: u = Typ[Invalid]
named.go#L659: return Typ[Invalid]
object.go#L253: return &PkgName{object{nil, pos, pkg, name, Typ[Invalid], 0, black, nopos}, imported}
object.go#L539: return &Label{object{pos: pos, pkg: pkg, name: name, typ: Typ[Invalid], color_: black}, false}
object.go#L550: return &Builtin{object{name: predeclaredFuncs[id].name, typ: Typ[Invalid], color_: black}, id}
operand.go#L118: case nil, Typ[Invalid]:
operand.go#L289: x.typ = Typ[Invalid]
predicates.go#L18: func isValid(t Type) bool { return Unalias(t) != Typ[Invalid] }
range.go#L128: if typ == nil || typ == Typ[Invalid] {
range.go#L130: obj.typ = Typ[Invalid]
range.go#L166: if typ == nil || typ == Typ[Invalid] {
range.go#L208: return Typ[Invalid], Typ[Invalid], cause, false
recording.go#L25: typ = Typ[Invalid]
signature.go#L194: var recvType Type = Typ[Invalid]
signature.go#L212: recvType = Typ[Invalid] // avoid follow-on errors by Checker.validRecv
stmt.go#L347: T = Typ[Invalid]
stmt.go#L400: T = Typ[Invalid]
struct.go#L108: typ = Typ[Invalid]
subst.go#L112: return Typ[Invalid] // error reported elsewhere
subst.go#L254: return Typ[Invalid] // error reported elsewhere
subst.go#L284: return Typ[Invalid]
typexpr.go#L197: typ = Typ[Invalid]
typexpr.go#L217: typ = Typ[Invalid]
typexpr.go#L336: typ.base = Typ[Invalid] // avoid nil base in invalid recursive type declaration
typexpr.go#L344: return Typ[Invalid]
typexpr.go#L411: typ := Typ[Invalid]
typexpr.go#L422: assert(t == Typ[Invalid])
typexpr.go#L463: return Typ[Invalid]
typexpr.go#L473: return Typ[Invalid]
union.go#L72: u = Typ[Invalid]
union.go#L158: typ = Typ[Invalid]
universe.go#L43: Invalid: {Invalid, 0, "invalid type"},
validtype.go#L131: t.underlying = Typ[Invalid]
validtype.go#L132: t.Origin().underlying = Typ[Invalid]
golang.org/x/tools/internal/gcimporter
iexport.go#L723: if sig.Recv().Type() != types.Typ[types.Invalid] {
iexport.go#L1328: if b.Kind() == types.Invalid {
iimport.go#L716: if b.Kind() == types.Invalid {
predeclared.go#L72: types.Typ[types.Invalid], // only appears in packages with errors
golang.org/x/tools/internal/typeparams
normalize.go#L192: if t.Type() == types.Typ[types.Invalid] {
normalize.go#L207: if u != types.Typ[types.Invalid] {
golang.org/x/tools/internal/typesinternal
zerovalue.go#L48: case t.Kind() == types.Invalid:
zerovalue.go#L141: case t.Kind() == types.Invalid: