- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for hashTypeParam (0.1 sec)
-
src/cmd/vendor/golang.org/x/tools/go/types/typeutil/map.go
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 { // See go/types.identicalTypes for rationale.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 03 02:38:00 UTC 2024 - 13.9K bytes - Viewed (0)