Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for assertableTo (0.2 sec)

  1. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/ifaceassert/ifaceassert.go

    	Requires: []*analysis.Analyzer{inspect.Analyzer},
    	Run:      run,
    }
    
    // assertableTo checks whether interface v can be asserted into t. It returns
    // nil on success, or the first conflicting method on failure.
    func assertableTo(free *typeparams.Free, v, t types.Type) *types.Func {
    	if t == nil || v == nil {
    		// not assertable to, but there is no missing method
    		return nil
    	}
    	// ensure that v and t are interfaces
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/types2/api_predicates.go

    package types2
    
    // AssertableTo reports whether a value of type V can be asserted to have type T.
    //
    // The behavior of AssertableTo is unspecified in three cases:
    //   - if T is Typ[Invalid]
    //   - if V is a generalized interface; i.e., an interface that may only be used
    //     as a type constraint in Go code
    //   - if T is an uninstantiated generic type
    func AssertableTo(V *Interface, T Type) bool {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 08 16:36:08 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  3. src/go/types/api_predicates.go

    package types
    
    // AssertableTo reports whether a value of type V can be asserted to have type T.
    //
    // The behavior of AssertableTo is unspecified in three cases:
    //   - if T is Typ[Invalid]
    //   - if V is a generalized interface; i.e., an interface that may only be used
    //     as a type constraint in Go code
    //   - if T is an uninstantiated generic type
    func AssertableTo(V *Interface, T Type) bool {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 08 16:36:08 UTC 2024
    - 3.5K bytes
    - Viewed (0)
Back to top