go/types.Signature.TypeParams (method)

29 uses

	go/types (current package)
		assignments.go#L75: 	if sig, _ := under(x.typ).(*Signature); sig != nil && sig.TypeParams().Len() > 0 {
		call.go#L34: 	got, want := len(targs), sig.TypeParams().Len()
		call.go#L43: 		targs = check.infer(ix.Orig, sig.TypeParams().list(), targs, nil, nil)
		call.go#L56: 	assert(res.TypeParams().Len() == 0) // signature is not generic anymore
		call.go#L65: 	assert(len(targs) == typ.TypeParams().Len())
		call.go#L81: 		tparams := typ.TypeParams().list()
		call.go#L197: 		got, want := len(targs), sig.TypeParams().Len()
		call.go#L209: 	isGeneric := sig.TypeParams().Len() > 0
		call.go#L212: 	if isGeneric && sig.TypeParams().Len() == 0 {
		call.go#L237: 	if x.mode == value && sig.TypeParams().Len() > 0 && isParameterized(sig.TypeParams().list(), x.typ) {
		call.go#L380: 	if sig.TypeParams().Len() > 0 {
		call.go#L390: 		targs := check.infer(call, sig.TypeParams().list(), targs, sigParams, args)
		call.go#L397: 		assert(rsig.TypeParams().Len() == 0) // signature is not generic anymore
		call.go#L404: 			sigParams = check.subst(call.Pos(), sigParams, makeSubstMap(sig.TypeParams().list(), targs), nil).(*Tuple)
		index.go#L38: 		if sig, _ := under(x.typ).(*Signature); sig != nil && sig.TypeParams().Len() > 0 {
		instantiate.go#L49: 			tparams = t.TypeParams().list()
		instantiate.go#L88: 		tparams := orig.TypeParams()
		predicates.go#L262: 		if x.TypeParams().Len() != y.TypeParams().Len() {
		predicates.go#L271: 		if x.TypeParams().Len() > 0 {
		predicates.go#L274: 			xtparams := x.TypeParams().list()
		predicates.go#L275: 			ytparams := y.TypeParams().list()
		predicates.go#L279: 				targs = append(targs, x.TypeParams().At(i))
		signature.go#L81: func (s *Signature) TypeParams() *TypeParamList { return s.tparams }
		typestring.go#L440: 	if sig.TypeParams().Len() != 0 {
		typestring.go#L443: 			w.tparams = sig.TypeParams()
		typestring.go#L448: 		w.tParamList(sig.TypeParams().list())

	golang.org/x/tools/internal/typeparams
		typeparams_go118.go#L60: 	return sig.TypeParams()