- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for hasEmptyTypeset (0.22 sec)
-
src/go/types/predicates.go
_, ok := Unalias(t).(*TypeParam) return ok } // hasEmptyTypeset reports whether t is a type parameter with an empty type set. // The function does not force the computation of the type set and so is safe to // use anywhere, but it may report a false negative if the type set has not been // computed yet. func hasEmptyTypeset(t Type) bool { if tpar, _ := Unalias(t).(*TypeParam); tpar != nil && tpar.bound != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 03:01:18 UTC 2024 - 17.6K bytes - Viewed (0) -
src/cmd/compile/internal/types2/predicates.go
_, ok := Unalias(t).(*TypeParam) return ok } // hasEmptyTypeset reports whether t is a type parameter with an empty type set. // The function does not force the computation of the type set and so is safe to // use anywhere, but it may report a false negative if the type set has not been // computed yet. func hasEmptyTypeset(t Type) bool { if tpar, _ := Unalias(t).(*TypeParam); tpar != nil && tpar.bound != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 03:01:18 UTC 2024 - 17.5K bytes - Viewed (0) -
src/go/types/operand.go
buf.WriteString(" constrained by ") WriteType(&buf, tpar.bound, qf) // do not compute interface type sets here // If we have the type set and it's empty, say so for better error messages. if hasEmptyTypeset(tpar) { buf.WriteString(" with empty type set") } } } else { buf.WriteString(" with invalid type") } } // ) if expr != "" { buf.WriteByte(')') }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 21:17:10 UTC 2024 - 11.1K bytes - Viewed (0) -
src/cmd/compile/internal/types2/operand.go
buf.WriteString(" constrained by ") WriteType(&buf, tpar.bound, qf) // do not compute interface type sets here // If we have the type set and it's empty, say so for better error messages. if hasEmptyTypeset(tpar) { buf.WriteString(" with empty type set") } } } else { buf.WriteString(" with invalid type") } } // ) if expr != "" { buf.WriteByte(')') }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 21:17:10 UTC 2024 - 11K bytes - Viewed (0)