go/types.TypeParamList.Len (method)

51 uses

	go/types (current package)
		assignments.go#L97: 	if sig, _ := under(x.typ).(*Signature); sig != nil && sig.TypeParams().Len() > 0 {
		call.go#L64: 	got, want := len(targs), sig.TypeParams().Len()
		call.go#L135: 	assert(len(targs) == typ.TypeParams().Len())
		call.go#L150: 	assert(inst.TypeParams().Len() == 0) // signature is not generic anymore
		call.go#L258: 	wasGeneric := sig.TypeParams().Len() > 0
		call.go#L275: 		got, want := len(targs), sig.TypeParams().Len()
		call.go#L303: 	if wasGeneric && sig.TypeParams().Len() == 0 {
		call.go#L328: 	if x.mode == value && sig.TypeParams().Len() > 0 && isParameterized(sig.TypeParams().list(), x.typ) {
		call.go#L369: 						assert(n < x.typ.(*Signature).TypeParams().Len())
		call.go#L546: 	n := sig.TypeParams().Len()
		call.go#L573: 			if asig, _ := arg.typ.(*Signature); asig != nil && asig.TypeParams().Len() > 0 {
		call.go#L644: 			k := j + asig.TypeParams().Len()
		index.go#L39: 		if sig, _ := under(x.typ).(*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#L142: 		if !check.validateTArgLen(pos, orig.obj.Name(), tparams.Len(), len(targs)) {
		instantiate.go#L149: 		if tparams.Len() == 0 {
		instantiate.go#L160: 		if !check.validateTArgLen(pos, orig.String(), tparams.Len(), len(targs)) {
		instantiate.go#L163: 		if tparams.Len() == 0 {
		iter.go#L140: 		for i := range l.Len() {
		named.go#L424: 	if origSig.RecvTypeParams().Len() == t.inst.targs.Len() {
		named.go#L657: 	if orig.tparams.Len() != targs.Len() {
		object.go#L580: 			if t.TypeParams().Len() > 0 {
		predicates.go#L152: 	return named != nil && named.obj != nil && named.inst == nil && named.TypeParams().Len() > 0
		predicates.go#L345: 		if x.TypeParams().Len() != y.TypeParams().Len() {
		predicates.go#L354: 		if x.TypeParams().Len() > 0 {
		subst.go#L105: 		n := orig.TypeParams().Len()
		subst.go#L248: 		n := orig.TypeParams().Len()
		typelists.go#L15: func (l *TypeParamList) Len() int { return len(l.list()) }
		typestring.go#L304: 		} else if w.ctxt == nil && t.TypeParams().Len() != 0 { // For type hashing, don't need to format the TypeParams
		typestring.go#L344: 		} else if w.ctxt == nil && t.TypeParams().Len() != 0 { // For type hashing, don't need to format the TypeParams
		typestring.go#L477: 	if sig.TypeParams().Len() != 0 {

	golang.org/x/exp/apidiff
		correspondence.go#L262: 	if tps1.Len() != tps2.Len() {
		correspondence.go#L265: 	for i := 0; i < tps1.Len(); i++ {

	golang.org/x/tools/go/types/objectpath
		objectpath.go#L568: 	for i := 0; i < list.Len(); i++ {
		objectpath.go#L711: 			if n := tparams.Len(); index >= n {
		objectpath.go#L722: 			if n := rtparams.Len(); index >= n {

	golang.org/x/tools/go/types/typeutil
		map.go#L260: 		if n := tparams.Len(); n > 0 {

	golang.org/x/tools/internal/gcimporter
		iexport.go#L729: 		if sig.TypeParams().Len() == 0 {
		iexport.go#L742: 		if tparams := sig.TypeParams(); tparams.Len() > 0 {
		iexport.go#L777: 			if tparams.Len() == 0 {
		iexport.go#L783: 			if tparams.Len() > 0 {
		iexport.go#L801: 		if named.TypeParams().Len() == 0 {
		iexport.go#L808: 		if named.TypeParams().Len() > 0 {
		iexport.go#L831: 			if rparams := sig.RecvTypeParams(); rparams.Len() > 0 {
		iexport.go#L833: 				for i := 0; i < rparams.Len(); i++ {
		iexport.go#L1233: 	ll := uint64(list.Len())
		iexport.go#L1235: 	for i := 0; i < list.Len(); i++ {

	golang.org/x/tools/internal/typeparams
		free.go#L41: 		if aliases.TypeParams(t).Len() > aliases.TypeArgs(t).Len() {
		free.go#L113: 		if params := t.TypeParams(); params.Len() > args.Len() {