Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for concreteMethod (0.12 sec)

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

    		// A func, if not package-level, must be a method.
    		if recv := obj.Type().(*types.Signature).Recv(); recv == nil {
    			return "", fmt.Errorf("func is not a method: %v", obj)
    		}
    
    		if path, ok := enc.concreteMethod(obj); ok {
    			// Fast path for concrete methods that avoids looping over scope.
    			return path, nil
    		}
    
    	default:
    		panic(obj)
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 23.1K bytes
    - Viewed (0)
Back to top