type go/types.TypeParamList
22 uses
go/types (current package)
decl.go#L599: func (check *Checker) collectTypeParams(dst **TypeParamList, list *ast.FieldList) {
instantiate.go#L82: named.resolver = func(ctxt *Context, n *Named) (*TypeParamList, Type, *methodList) {
named.go#L19: tparams *TypeParamList // type parameters, or nil
named.go#L30: resolver func(*Context, *Named) (tparams *TypeParamList, underlying Type, methods *methodList)
named.go#L65: func (check *Checker) newNamed(obj *TypeName, orig *Named, underlying Type, tparams *TypeParamList, methods *methodList) *Named {
named.go#L115: func (t *Named) TypeParams() *TypeParamList { return t.resolve(nil).tparams }
named.go#L358: func expandNamed(ctxt *Context, n *Named, instPos token.Pos) (tparams *TypeParamList, underlying Type, methods *methodList) {
object.go#L238: resolve := func(_ *Context, t *Named) (*TypeParamList, Type, *methodList) {
signature.go#L22: rparams *TypeParamList // receiver type parameters from left to right, or nil
signature.go#L23: tparams *TypeParamList // type parameters from left to right, or nil
signature.go#L81: func (s *Signature) TypeParams() *TypeParamList { return s.tparams }
signature.go#L84: func (s *Signature) RecvTypeParams() *TypeParamList { return s.rparams }
typelists.go#L8: type TypeParamList struct{ tparams []*TypeParam }
typelists.go#L12: func (l *TypeParamList) Len() int { return len(l.list()) }
typelists.go#L15: func (l *TypeParamList) At(i int) *TypeParam { return l.tparams[i] }
typelists.go#L20: func (l *TypeParamList) list() []*TypeParam {
typelists.go#L58: func bindTParams(list []*TypeParam) *TypeParamList {
typelists.go#L68: return &TypeParamList{tparams: list}
typestring.go#L81: tparams *TypeParamList // local type parameters
typexpr.go#L448: inst.resolver = func(ctxt *Context, n *Named) (*TypeParamList, Type, *methodList) {
golang.org/x/exp/apidiff
correspondence.go#L205: func typeParamListsMatch(tps1, tps2 *types.TypeParamList) bool {
golang.org/x/tools/internal/typeparams
typeparams_go118.go#L38: type TypeParamList = types.TypeParamList