- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 111 for typeVar (0.12 sec)
-
src/cmd/compile/internal/types2/typexpr.go
// be a placeholder for a receiver type parameter. In this case we can // resolve its type and object from Checker.recvTParamMap. if tpar := check.recvTParamMap[e]; tpar != nil { x.mode = typexpr x.typ = tpar } else { check.error(e, InvalidBlank, "cannot use _ as value or type") } } else { check.errorf(e, UndeclaredName, "undefined: %s", e.Value) } return
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 16.6K bytes - Viewed (0) -
src/go/types/typexpr.go
// be a placeholder for a receiver type parameter. In this case we can // resolve its type and object from Checker.recvTParamMap. if tpar := check.recvTParamMap[e]; tpar != nil { x.mode = typexpr x.typ = tpar } else { check.error(e, InvalidBlank, "cannot use _ as value or type") } } else { check.errorf(e, UndeclaredName, "undefined: %s", e.Name) } return case universeComparable:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 16.3K bytes - Viewed (0) -
guava/src/com/google/common/reflect/TypeToken.java
* </ol> */ private static Type canonicalizeTypeArg(TypeVariable<?> declaration, Type typeArg) { return typeArg instanceof WildcardType ? canonicalizeWildcardType(declaration, ((WildcardType) typeArg)) : canonicalizeWildcardsInType(typeArg); } private static Type canonicalizeWildcardsInType(Type type) { if (type instanceof ParameterizedType) {
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Mon Jun 26 21:02:13 UTC 2023 - 53.6K bytes - Viewed (0) -
android/guava/src/com/google/common/reflect/TypeToken.java
* </ol> */ private static Type canonicalizeTypeArg(TypeVariable<?> declaration, Type typeArg) { return typeArg instanceof WildcardType ? canonicalizeWildcardType(declaration, ((WildcardType) typeArg)) : canonicalizeWildcardsInType(typeArg); } private static Type canonicalizeWildcardsInType(Type type) { if (type instanceof ParameterizedType) {
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Mon Jun 26 21:02:13 UTC 2023 - 53.6K bytes - Viewed (0) -
src/archive/tar/common.go
TypeRegA = '\x00' // Type '1' to '6' are header-only flags and may not have a data body. TypeLink = '1' // Hard link TypeSymlink = '2' // Symbolic link TypeChar = '3' // Character device node TypeBlock = '4' // Block device node TypeDir = '5' // Directory TypeFifo = '6' // FIFO node // Type '7' is reserved. TypeCont = '7' // Type 'x' is used by the PAX format to store key-value records that
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Mar 15 16:01:50 UTC 2024 - 24.7K bytes - Viewed (0) -
pilot/pkg/xds/monitoring.go
model.DebugTrigger: pushTriggers.With(typeTag.Value(string(model.DebugTrigger))), model.SecretTrigger: pushTriggers.With(typeTag.Value(string(model.SecretTrigger))), model.NetworksTrigger: pushTriggers.With(typeTag.Value(string(model.NetworksTrigger))), model.ProxyRequest: pushTriggers.With(typeTag.Value(string(model.ProxyRequest))),
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Apr 30 00:26:45 UTC 2024 - 6.7K bytes - Viewed (0) -
pkg/typemap/map_test.go
typemap.Set(tm, &TestStruct{Field: "pointer"}) typemap.Set[TestInterface[string]](tm, TestStruct{Field: "interface"}) assert.Equal(t, typemap.Get[int](tm), ptr.Of(1)) assert.Equal(t, typemap.Get[int32](tm), ptr.Of(int32(2))) assert.Equal(t, typemap.Get[string](tm), ptr.Of("string")) assert.Equal(t, typemap.Get[*TestStruct](tm), ptr.Of(&TestStruct{Field: "pointer"}))
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Apr 17 16:38:40 UTC 2024 - 1.5K bytes - Viewed (0) -
src/reflect/type_test.go
) testcases := []struct { wantFrom any got reflect.Type }{ {new(int), reflect.TypeFor[int]()}, {new(int64), reflect.TypeFor[int64]()}, {new(string), reflect.TypeFor[string]()}, {new(mystring), reflect.TypeFor[mystring]()}, {new(any), reflect.TypeFor[any]()}, {new(myiface), reflect.TypeFor[myiface]()}, } for _, tc := range testcases { want := reflect.ValueOf(tc.wantFrom).Elem().Type()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 15 23:39:44 UTC 2024 - 4.2K bytes - Viewed (0) -
cmd/untar.go
switch path.Clean(name) { case ".", slashSeparator: continue } switch header.Typeflag { case tar.TypeDir: // = directory if o.ignoreDirs { continue } name = trimLeadingSlash(pathJoin(name, slashSeparator)) case tar.TypeReg, tar.TypeChar, tar.TypeBlock, tar.TypeFifo, tar.TypeGNUSparse: // = regular name = trimLeadingSlash(path.Clean(name)) default: // ignore symlink'ed
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Thu Apr 04 12:04:40 UTC 2024 - 6K bytes - Viewed (0) -
src/cmd/cgo/internal/swig/testdata/stdio/main.swig
/* A trivial example of wrapping a C library using SWIG. */ %{ #include <stdio.h> #include <stdlib.h> %} %typemap(gotype) const char * "string" %typemap(in) const char * %{ $1 = malloc($input.n + 1); memcpy($1, $input.p, $input.n); $1[$input.n] = '\0'; %} %typemap(freearg) const char * %{ free($1); %} FILE *fopen(const char *name, const char *mode); int fclose(FILE *);
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 12:00:07 UTC 2023 - 563 bytes - Viewed (0)