go/types.TypeParamList.Len (method)
63 uses
go/types (current package)
assignments.go#L97: if sig, _ := x.typ.Underlying().(*Signature); sig != nil && sig.TypeParams().Len() > 0 {
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#L264: wasGeneric := sig.TypeParams().Len() > 0
call.go#L281: got, want := len(targs), sig.TypeParams().Len()
call.go#L309: if wasGeneric && sig.TypeParams().Len() == 0 {
call.go#L334: if x.mode == value && sig.TypeParams().Len() > 0 && isParameterized(sig.TypeParams().list(), x.typ) {
call.go#L373: 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, _ := 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#L137: if !check.validateTArgLen(pos, orig.obj.Name(), tparams.Len(), len(targs)) {
instantiate.go#L144: if tparams.Len() == 0 {
instantiate.go#L155: if !check.validateTArgLen(pos, orig.String(), tparams.Len(), len(targs)) {
instantiate.go#L158: if tparams.Len() == 0 {
iter.go#L140: for i := range l.Len() {
named.go#L492: if origSig.RecvTypeParams().Len() == t.inst.targs.Len() {
named.go#L767: if targs.Len() != tpars.Len() {
object.go#L591: 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#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#L480: 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#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#L522: for i := 0; i < list.Len(); i++ {
objectpath.go#L859: if n := tparams.Len(); index >= n {
objectpath.go#L870: 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#L727: if sig.TypeParams().Len() == 0 {
iexport.go#L740: if tparams := sig.TypeParams(); tparams.Len() > 0 {
iexport.go#L775: if tparams.Len() == 0 {
iexport.go#L781: if tparams.Len() > 0 {
iexport.go#L799: if named.TypeParams().Len() == 0 {
iexport.go#L806: if named.TypeParams().Len() > 0 {
iexport.go#L826: if w.p.version >= iexportVersionGenericMethods && w.bool(sig.TypeParams().Len() > 0) {
iexport.go#L832: if rparams := sig.RecvTypeParams(); rparams.Len() > 0 {
iexport.go#L1243: 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() {