Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for IsNamedType (0.19 sec)

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

    	}
    
    	// In go1.10, sync.noCopy did not implement Locker.
    	// (The Unlock method was added only in CL 121876.)
    	// TODO(adonovan): remove workaround when we drop go1.10.
    	if analysisutil.IsNamedType(typ, "sync", "noCopy") {
    		return []string{typ.String()}
    	}
    
    	nfields := styp.NumFields()
    	for i := 0; i < nfields; i++ {
    		ftyp := styp.Field(i).Type()
    		subpath := lockPath(tpkg, ftyp, seen)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  2. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/tests/tests.go

    	// No Unalias here: I doubt "go test" recognizes
    	// "type A = *testing.T; func Test(A) {}" as a test.
    	ptr, ok := typ.(*types.Pointer)
    	if !ok {
    		return false
    	}
    	return analysisutil.IsNamedType(ptr.Elem(), "testing", testingType)
    }
    
    // Validate that fuzz target function's arguments are of accepted types.
    func isAcceptedFuzzType(paramType types.Type) bool {
    	for _, typ := range acceptedFuzzTypes {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 02:38:00 UTC 2024
    - 14.4K bytes
    - Viewed (0)
Back to top