- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 89 for TypeParam (0.13 sec)
-
src/cmd/compile/internal/types2/conversions.go
if ok, _ := x.assignableTo(check, T, cause); ok { return true } origT := T V := Unalias(x.typ) T = Unalias(T) Vu := under(V) Tu := under(T) Vp, _ := V.(*TypeParam) Tp, _ := T.(*TypeParam) // "V and T have identical underlying types if tags are ignored // and V and T are not type parameters" if IdenticalIgnoreTags(Vu, Tu) && Vp == nil && Tp == nil { return true }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 18:51:00 UTC 2024 - 9K bytes - Viewed (0) -
src/cmd/compile/internal/syntax/type.go
// so we could depend on it from other packages without // introducing an import cycle.) type Type interface { // Underlying returns the underlying type of a type. // Underlying types are never Named, TypeParam, or Alias types. // // See https://go.dev/ref/spec#Underlying_types. Underlying() Type // String returns a string representation of a type. String() string }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 15 20:03:31 UTC 2024 - 2.7K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/analysis/passes/unmarshal/unmarshal.go
return // not enough arguments, e.g. called with return values of another function } t := pass.TypesInfo.Types[call.Args[argidx]].Type switch t.Underlying().(type) { case *types.Pointer, *types.Interface, *types.TypeParam: return } switch argidx { case 0: pass.Reportf(call.Lparen, "call of %s passes non-pointer", fn.Name()) case 1:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 02:20:05 UTC 2024 - 3.1K bytes - Viewed (0) -
src/cmd/compile/internal/types2/operand.go
origT := T V := Unalias(x.typ) T = Unalias(T) // x's type is identical to T if Identical(V, T) { return true, 0 } Vu := under(V) Tu := under(T) Vp, _ := V.(*TypeParam) Tp, _ := T.(*TypeParam) // x is an untyped value representable by a value of type T. if isUntyped(Vu) { assert(Vp == nil) if Tp != nil { // T is a type parameter: x is assignable to T if it is
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 21:17:10 UTC 2024 - 11K bytes - Viewed (0) -
src/go/internal/gcimporter/ureader.go
// bounds is a slice of typeInfos corresponding to the underlying // bounds of the element's type parameters. bounds []typeInfo // tparams is a slice of the constructed TypeParams for the element. tparams []*types.TypeParam // derived is a slice of types derived from tparams, which may be // instantiated while reading the current element. derived []derivedInfo derivedTypes []types.Type // lazily instantiated from derived }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 16.6K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/internal/typeparams/free.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 02:20:05 UTC 2024 - 2.7K bytes - Viewed (0) -
src/cmd/compile/internal/types2/format.go
w.tpSubscripts = tpSubscripts buf.WriteByte('[') for i, x := range a { if i > 0 { buf.WriteString(", ") } w.typ(x) } buf.WriteByte(']') arg = buf.String() case []*TypeParam: var buf bytes.Buffer w := newTypeWriter(&buf, qf) w.tpSubscripts = tpSubscripts buf.WriteByte('[') for i, x := range a { if i > 0 { buf.WriteString(", ") } w.typ(x) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 3.5K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/types/typeutil/map.go
case *types.Named: hash := h.hashPtr(t.Obj()) targs := t.TypeArgs() for i := 0; i < targs.Len(); i++ { targ := targs.At(i) hash += 2 * h.Hash(targ) } return hash case *types.TypeParam: return h.hashTypeParam(t) case *types.Tuple: return h.hashTuple(t) } panic(fmt.Sprintf("%T: %v", t, t)) } func (h Hasher) hashTuple(tuple *types.Tuple) uint32 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 03 02:38:00 UTC 2024 - 13.9K bytes - Viewed (0) -
src/cmd/compile/internal/types2/sizes.go
assert(!isTypeParam(T)) return s.WordSize case *Basic: // Strings are like slices and interfaces. if t.Info()&IsString != 0 { return s.WordSize } case *TypeParam, *Union: panic("unreachable") } a := s.Sizeof(T) // may be 0 or negative // spec: "For a variable x of any type: unsafe.Alignof(x) is at least 1." if a < 1 { return 1 }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 25 19:53:03 UTC 2024 - 8.8K bytes - Viewed (0) -
src/go/types/format.go
w.tpSubscripts = tpSubscripts buf.WriteByte('[') for i, x := range a { if i > 0 { buf.WriteString(", ") } w.typ(x) } buf.WriteByte(']') arg = buf.String() case []*TypeParam: var buf bytes.Buffer w := newTypeWriter(&buf, qf) w.tpSubscripts = tpSubscripts buf.WriteByte('[') for i, x := range a { if i > 0 { buf.WriteString(", ") } w.typ(x) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 3.5K bytes - Viewed (0)