internal/abi.InterfaceType.Methods (field)
44 uses
internal/abi (current package)
type.go#L450: Methods []Imethod // sorted by hash
type.go#L470: func (t *InterfaceType) NumMethod() int { return len(t.Methods) }
internal/reflectlite
type.go#L419: if len(t.Methods) == 0 {
type.go#L440: for j := 0; j < len(v.Methods); j++ {
type.go#L441: tm := &t.Methods[i]
type.go#L443: vm := &v.Methods[j]
type.go#L459: if i++; i >= len(t.Methods) {
type.go#L474: tm := &t.Methods[i]
type.go#L492: if i++; i >= len(t.Methods) {
type.go#L586: if len(t.Methods) == 0 && len(v.Methods) == 0 {
internal/runtime/maps
map.go#L839: if len(i.Methods) == 0 {
reflect
type.go#L1045: if i < 0 || i >= len(t.Methods) {
type.go#L1048: p := &t.Methods[i]
type.go#L1063: func (t *interfaceType) NumMethod() int { return len(t.Methods) }
type.go#L1071: for i := range t.Methods {
type.go#L1072: p = &t.Methods[i]
type.go#L1509: if len(t.Methods) == 0 {
type.go#L1528: for j := 0; j < len(v.Methods); j++ {
type.go#L1529: tm := &t.Methods[i]
type.go#L1531: vm := &v.Methods[j]
type.go#L1547: if i++; i >= len(t.Methods) {
type.go#L1562: tm := &t.Methods[i]
type.go#L1580: if i++; i >= len(t.Methods) {
type.go#L1682: if len(t.Methods) == 0 && len(v.Methods) == 0 {
type.go#L2328: for _, m := range ift.Methods {
value.go#L881: if uint(i) >= uint(len(tt.Methods)) {
value.go#L884: m := &tt.Methods[i]
value.go#L2515: if uint(i) >= uint(len(tt.Methods)) {
value.go#L2518: m := &tt.Methods[i]
runtime
alg.go#L240: if len(i.Methods) == 0 {
iface.go#L45: if len(inter.Methods) == 0 {
iface.go#L54: name := toRType(&inter.Type).nameOff(inter.Methods[0].Name)
iface.go#L77: m = (*itab)(persistentalloc(unsafe.Sizeof(itab{})+uintptr(len(inter.Methods)-1)*goarch.PtrSize, 0, &memstats.other_sys))
iface.go#L213: ni := len(inter.Methods)
iface.go#L221: i := &inter.Methods[k]
mfinal.go#L263: if len(ityp.Methods) != 0 {
mfinal.go#L516: if len(ityp.Methods) == 0 {
type.go#L583: if len(it.Methods) != len(iv.Methods) {
type.go#L586: for i := range it.Methods {
type.go#L587: tm := &it.Methods[i]
type.go#L588: vm := &iv.Methods[i]
![]() |
The pages are generated with Golds v0.8.4. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |