- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 29 for typexpr (0.12 sec)
-
src/encoding/gob/type_test.go
newtyp := getTypeUnlocked("int", reflect.TypeFor[int]()) if newtyp != tInt.gobType() { t.Errorf("reregistration of %s got new type", newtyp.string()) } newtyp = getTypeUnlocked("uint", reflect.TypeFor[uint]()) if newtyp != tUint.gobType() { t.Errorf("reregistration of %s got new type", newtyp.string()) } newtyp = getTypeUnlocked("string", reflect.TypeFor[string]()) if newtyp != tString.gobType() {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Aug 01 14:26:13 UTC 2023 - 6.1K bytes - Viewed (0) -
security/pkg/pki/util/san.go
// an identity into a SAN extension. type IdentityType int const ( // TypeDNS represents a DNS name. TypeDNS IdentityType = iota // TypeIP represents an IP address. TypeIP // TypeURI represents a universal resource identifier. TypeURI ) var ( // Mapping from the type of an identity to the OID tag value for the X.509
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Oct 14 06:50:22 UTC 2022 - 6K bytes - Viewed (0) -
src/unique/clone_test.go
testCloneSeq[testStruct](t, cSeq(8)) } func cSeq(stringOffsets ...uintptr) cloneSeq { return cloneSeq{stringOffsets: stringOffsets} } func testCloneSeq[T any](t *testing.T, want cloneSeq) { typName := reflect.TypeFor[T]().Name() typ := abi.TypeOf(*new(T)) t.Run(typName, func(t *testing.T) { got := makeCloneSeq(typ) if !reflect.DeepEqual(got, want) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 22 18:14:07 UTC 2024 - 1K bytes - Viewed (0) -
src/cmd/fix/cftype.go
// There's no easy way to map from an ast.Expr to all the places that use them, so // we use reflect to find all such references. if len(badNils) > 0 { exprType := reflect.TypeFor[ast.Expr]() exprSliceType := reflect.TypeFor[[]ast.Expr]() walk(f, func(n any) { if n == nil { return } v := reflect.ValueOf(n) if v.Type().Kind() != reflect.Pointer { return } if v.IsNil() {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Aug 07 00:25:49 UTC 2023 - 3.5K bytes - Viewed (0) -
pkg/typemap/map.go
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Apr 17 16:38:40 UTC 2024 - 1.2K bytes - Viewed (0) -
analysis/analysis-api/testData/components/compilerFacility/compilation/javaAnnotationWithVararg.ir.txt
overridden: public open fun setContentView (p0: kotlin.Int): kotlin.Unit declared in p2.Parent $this: VALUE_PARAMETER name:<this> type:p2.Parent VALUE_PARAMETER name:p0 index:0 type:kotlin.Int annotations: Anno(value = ["UnknownNullness", "MissingNullability"])
Registered: Wed Jun 12 09:53:16 UTC 2024 - Last Modified: Tue Apr 16 19:18:28 UTC 2024 - 3K bytes - Viewed (0) -
src/html/template/content.go
return a } v := reflect.ValueOf(a) for v.Kind() == reflect.Pointer && !v.IsNil() { v = v.Elem() } return v.Interface() } var ( errorType = reflect.TypeFor[error]() fmtStringerType = reflect.TypeFor[fmt.Stringer]() ) // indirectToStringerOrError returns the value, after dereferencing as many times // as necessary to reach the base type (or nil) or an implementation of fmt.Stringer
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Aug 01 14:30:25 UTC 2023 - 6.2K bytes - Viewed (0) -
src/go/build/constraint/vers.go
case *OrExpr: op := orVersion if sign < 0 { op = andVersion } return op(minVersion(z.X, sign), minVersion(z.Y, sign)) case *NotExpr: return minVersion(z.X, -sign) case *TagExpr: if sign < 0 { // !foo implies nothing return -1 } if z.Tag == "go1" { return 0 } _, v, _ := strings.Cut(z.Tag, "go1.") n, err := strconv.Atoi(v) if err != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Sep 27 14:19:00 UTC 2023 - 2.2K bytes - Viewed (0) -
src/internal/types/errors/codes_test.go
example := strings.TrimSpace(examples[i]) err := checkExample(t, example) if err == nil { t.Fatalf("no error in example #%d", i) } typerr, ok := err.(Error) if !ok { t.Fatalf("not a types.Error: %v", err) } if got := readCode(typerr); got != value { t.Errorf("%s: example #%d returned code %d (%s), want %d", name, i, got, err, value) } } }) }) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Oct 18 20:41:45 UTC 2022 - 4.9K bytes - Viewed (0) -
src/net/http/transfer_test.go
func (w *mockTransferWriter) Write(p []byte) (int, error) { w.WriteCalled = true return io.Discard.Write(p) } func TestTransferWriterWriteBodyReaderTypes(t *testing.T) { fileType := reflect.TypeFor[*os.File]() bufferType := reflect.TypeFor[*bytes.Buffer]() nBytes := int64(1 << 10) newFileFunc := func() (r io.Reader, done func(), err error) { f, err := os.CreateTemp("", "net-http-newfilefunc") if err != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Nov 17 23:16:28 UTC 2023 - 9.1K bytes - Viewed (0)