- Sort Score
- Result 10 results
- Languages All
Results 1 - 6 of 6 for exportedMethods (0.22 sec)
-
src/internal/reflectlite/type.go
} func (t rtype) common() *abi.Type { return t.Type } func (t rtype) exportedMethods() []abi.Method { ut := t.uncommon() if ut == nil { return nil } return ut.ExportedMethods() } func (t rtype) NumMethod() int { tt := t.Type.InterfaceType() if tt != nil { return tt.NumMethod() } return len(t.exportedMethods()) } func (t rtype) PkgPath() string {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 07 17:01:54 UTC 2024 - 16.2K bytes - Viewed (0) -
src/internal/abi/type.go
Methods []Imethod // sorted by hash } func (t *Type) ExportedMethods() []Method { ut := t.Uncommon() if ut == nil { return nil } return ut.ExportedMethods() } func (t *Type) NumMethod() int { if t.Kind() == Interface { tt := (*InterfaceType)(unsafe.Pointer(t)) return tt.NumMethod() } return len(t.ExportedMethods()) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 17 21:09:59 UTC 2024 - 21.8K bytes - Viewed (0) -
src/reflect/type.go
func (t *rtype) exportedMethods() []abi.Method { ut := t.uncommon() if ut == nil { return nil } return ut.ExportedMethods() } func (t *rtype) NumMethod() int { if t.Kind() == Interface { tt := (*interfaceType)(unsafe.Pointer(t)) return tt.NumMethod() } return len(t.exportedMethods()) } func (t *rtype) Method(i int) (m Method) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 17:58:53 UTC 2024 - 85.5K bytes - Viewed (0) -
src/reflect/value.go
} rcvrtype = iface.itab.Type fn = unsafe.Pointer(&unsafe.Slice(&iface.itab.Fun[0], i+1)[i]) t = (*funcType)(unsafe.Pointer(tt.typeOff(m.Typ))) } else { rcvrtype = v.typ() ms := v.typ().ExportedMethods() if uint(i) >= uint(len(ms)) { panic("reflect: internal error: invalid method index") } m := ms[i] if !nameOffFor(v.typ(), m.Name).IsExported() { panic("reflect: " + op + " of unexported method")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 21:17:41 UTC 2024 - 119.9K bytes - Viewed (0) -
src/cmd/doc/doc_test.go
}, }, // Interface method. { "interface method", []string{p, `ExportedInterface.ExportedMethod`}, []string{ `Comment before exported method.\n.*//\n.*// // Code block showing how to use ExportedMethod\n.*// func DoSomething\(\) error {\n.*// ExportedMethod\(\)\n.*// return nil\n.*// }\n.*//.*\n.*ExportedMethod\(\)` + `.*Comment on line with exported method`, }, []string{
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Sep 07 19:16:55 UTC 2023 - 31.2K bytes - Viewed (0) -
src/cmd/doc/testdata/pkg.go
// Comment about exported interface. type ExportedInterface interface { // Comment before exported method. // // // Code block showing how to use ExportedMethod // func DoSomething() error { // ExportedMethod() // return nil // } // ExportedMethod() // Comment on line with exported method. unexportedMethod() // Comment on line with unexported method. io.Reader // Comment on line with embedded Reader.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Sep 07 19:16:55 UTC 2023 - 5.4K bytes - Viewed (0)