go/types.Named.TypeParams (method)
18 uses
go/types (current package)
instantiate.go#L47: tparams = t.TypeParams().list()
named.go#L115: func (t *Named) TypeParams() *TypeParamList { return t.resolve(nil).tparams }
object.go#L470: if t.TypeParams().Len() > 0 {
object.go#L471: newTypeWriter(buf, qf).tParamList(t.TypeParams().list())
predicates.go#L102: return named != nil && named.obj != nil && named.targs == nil && named.TypeParams() != nil
signature.go#L141: recvTParams = recv.TypeParams().list()
subst.go#L216: if t.orig.TypeParams().Len() == 0 {
subst.go#L222: if t.targs.Len() != t.orig.TypeParams().Len() {
subst.go#L237: newTArgs = make([]Type, t.orig.TypeParams().Len())
typestring.go#L292: } else if w.ctxt == nil && t.TypeParams().Len() != 0 { // For type hashing, don't need to format the TypeParams
typestring.go#L294: w.tParamList(t.TypeParams().list())
typexpr.go#L449: tparams := n.orig.TypeParams().list()
validtype.go#L129: tparams := typ.TypeParams()
golang.org/x/exp/apidiff
correspondence.go#L190: if !typeParamListsMatch(old.TypeParams(), newn.TypeParams()) {
correspondence.go#L237: oldps := oldn.TypeParams()
correspondence.go#L238: newps := newn.TypeParams()
golang.org/x/tools/internal/typeparams
typeparams_go118.go#L91: return named.TypeParams()
The pages are generated with Golds v0.4.9. (GOOS=linux GOARCH=amd64)