Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 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)
  3. 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)
Back to top