go/types.Named.TypeParams (method, view implemented interface methods)
15 uses
go/types (current package)
named.go#L325: func (t *Named) TypeParams() *TypeParamList { return t.resolve().tparams }
predicates.go#L152: return named != nil && named.obj != nil && named.inst == nil && named.TypeParams().Len() > 0
signature.go#L242: baseTParams := baseType.TypeParams().list()
subst.go#L248: n := orig.TypeParams().Len()
typestring.go#L304: } else if w.ctxt == nil && t.TypeParams().Len() != 0 { // For type hashing, don't need to format the TypeParams
typestring.go#L306: w.tParamList(t.TypeParams().list())
validtype.go#L168: for i, tparam := range inst.TypeParams().list() {
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/go/types/objectpath
objectpath.go#L289: if r := findTypeParam(obj, named.TypeParams(), path, nil); r != nil {
golang.org/x/tools/internal/gcimporter
iexport.go#L543: if named.TypeParams().Len() == 0 {
iexport.go#L550: if named.TypeParams().Len() > 0 {
iexport.go#L553: w.tparamList(obj.Name(), named.TypeParams(), obj.Pkg())
The pages are generated with Golds v0.7.6. (GOOS=linux GOARCH=amd64)