Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for exportedMethods (0.12 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
Back to top