Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for exportedMethods (0.14 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)
Back to top