go/types.TypeParamList.Len (method)
64 uses
go/types (current package)
call.go#L63: got, want := len(targs), sig.TypeParams().Len()
call.go#L134: assert(len(targs) == typ.TypeParams().Len())
call.go#L149: assert(inst.TypeParams().Len() == 0) // signature is not generic anymore
call.go#L269: wasGeneric := sig.TypeParams().Len() > 0
call.go#L286: got, want := len(targs), sig.TypeParams().Len()
call.go#L314: if wasGeneric && sig.TypeParams().Len() == 0 {
call.go#L346: if x.mode() == value && sig.TypeParams().Len() > 0 && isParameterized(sig.TypeParams().list(), x.typ()) {
call.go#L385: assert(n < x.typ().(*Signature).TypeParams().Len())
call.go#L558: n := sig.TypeParams().Len()
call.go#L585: if asig, _ := arg.typ().(*Signature); asig != nil && asig.TypeParams().Len() > 0 {
call.go#L656: k := j + asig.TypeParams().Len()
hash.go#L126: if n := tparams.Len(); n > 0 {
index.go#L39: if sig, _ := x.typ().Underlying().(*Signature); sig != nil && sig.TypeParams().Len() > 0 {
infer.go#L438: if sig, _ := t1.(*Signature); sig != nil && sig.TypeParams().Len() > 0 && !isParameterized(tparams, sig) {
instantiate.go#L144: if !check.validateTArgLen(pos, orig.obj.Name(), tparams.Len(), len(targs)) {
instantiate.go#L151: if tparams.Len() == 0 {
instantiate.go#L167: if !check.validateTArgLen(pos, orig.String(), tparams.Len(), len(targs)) {
instantiate.go#L170: if tparams.Len() == 0 {
iter.go#L140: for i := range l.Len() {
named.go#L771: if targs.Len() != tpars.Len() {
object.go#L592: if t.TypeParams().Len() > 0 {
predicates.go#L149: return named != nil && named.obj != nil && named.inst == nil && named.TypeParams().Len() > 0
predicates.go#L343: if x.TypeParams().Len() != y.TypeParams().Len() {
predicates.go#L352: if x.TypeParams().Len() > 0 {
subst.go#L105: n := orig.TypeParams().Len()
subst.go#L187: if n := tparams.Len(); n > 0 {
subst.go#L325: n := orig.TypeParams().Len()
typelists.go#L17: func (l *TypeParamList) Len() int { return len(l.list()) }
typestring.go#L296: } else if w.ctxt == nil && t.TypeParams().Len() != 0 { // For type hashing, don't need to format the TypeParams
typestring.go#L336: } else if w.ctxt == nil && t.TypeParams().Len() != 0 { // For type hashing, don't need to format the TypeParams
typestring.go#L476: if sig.TypeParams().Len() != 0 {
go.pact.im/x/plumb/internal/discover
provider.go#L92: return p.Tparams != nil && p.Tparams.Len() > 0
go.pact.im/x/plumb/internal/solve
joint.go#L184: ts := make([]types.Type, p.Tparams.Len())
lift.go#L19: targs := make([]types.Type, p.Tparams.Len())
lift.go#L20: fresh := make([]int, p.Tparams.Len())
lift.go#L21: for i := range p.Tparams.Len() {
lift.go#L38: m := make(map[*types.TypeParam]types.Type, p.Tparams.Len())
lift.go#L39: for i := range p.Tparams.Len() {
solve.go#L488: targs := make([]types.Type, p.Tparams.Len())
solve.go#L490: for i := range p.Tparams.Len() {
solve.go#L524: targs := make([]types.Type, p.Tparams.Len())
solve.go#L526: for i := range p.Tparams.Len() {
solve.go#L837: out := make([]types.Type, p.Tparams.Len())
solve.go#L838: for i := range p.Tparams.Len() {
golang.org/x/exp/apidiff
correspondence.go#L177: if targetNamed, ok := target.(*types.Named); ok && isInstantiated(targetNamed) && old.TypeParams().Len() > 0 {
correspondence.go#L279: if tps1.Len() != tps2.Len() {
correspondence.go#L282: for i := 0; i < tps1.Len(); i++ {
golang.org/x/tools/go/types/objectpath
objectpath.go#L528: for i := 0; i < list.Len(); i++ {
objectpath.go#L870: if n := tparams.Len(); index >= n {
objectpath.go#L881: if n := rtparams.Len(); index >= n {
golang.org/x/tools/go/types/typeutil
map.go#L259: if n := tparams.Len(); n > 0 {
golang.org/x/tools/internal/gcimporter
iexport.go#L692: if sig.TypeParams().Len() == 0 {
iexport.go#L705: if tparams := sig.TypeParams(); tparams.Len() > 0 {
iexport.go#L740: if tparams.Len() == 0 {
iexport.go#L746: if tparams.Len() > 0 {
iexport.go#L764: if named.TypeParams().Len() == 0 {
iexport.go#L771: if named.TypeParams().Len() > 0 {
iexport.go#L791: if w.p.version >= iexportVersionGenericMethods && w.bool(sig.TypeParams().Len() > 0) {
iexport.go#L797: if rparams := sig.RecvTypeParams(); rparams.Len() > 0 {
iexport.go#L1210: ll := uint64(list.Len())
golang.org/x/tools/internal/typeparams
free.go#L39: if t.TypeParams().Len() > t.TypeArgs().Len() {
free.go#L111: if params := t.TypeParams(); params.Len() > args.Len() {