Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 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/loopclosure/loopclosure.go

    	if recv == nil {
    		return false
    	}
    
    	// Check that the receiver is a <pkgPath>.<typeName> or
    	// *<pkgPath>.<typeName>.
    	_, named := typesinternal.ReceiverNamed(recv)
    	return analysisutil.IsNamedType(named, pkgPath, typeName)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  3. 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)
  4. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/printf/printf.go

    	fn, ok := obj.(*types.Func)
    	if !ok {
    		return false
    	}
    	sig := fn.Type().(*types.Signature)
    	return sig.Params().Len() == 2 &&
    		sig.Results().Len() == 0 &&
    		analysisutil.IsNamedType(sig.Params().At(0).Type(), "fmt", "State") &&
    		types.Identical(sig.Params().At(1).Type(), types.Typ[types.Rune])
    }
    
    // formatState holds the parsed representation of a printf directive such as "%3.*[4]d".
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 32.5K bytes
    - Viewed (0)
Back to top