Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for isPointerToConcrete (1.91 sec)

  1. src/cmd/vendor/golang.org/x/tools/go/types/typeutil/ui.go

    func IntuitiveMethodSet(T types.Type, msets *MethodSetCache) []*types.Selection {
    	isPointerToConcrete := func(T types.Type) bool {
    		ptr, ok := aliases.Unalias(T).(*types.Pointer)
    		return ok && !types.IsInterface(ptr.Elem())
    	}
    
    	var result []*types.Selection
    	mset := msets.MethodSet(T)
    	if types.IsInterface(T) || isPointerToConcrete(T) {
    		for i, n := 0, mset.Len(); i < n; i++ {
    			result = append(result, mset.At(i))
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 1.7K bytes
    - Viewed (0)
Back to top