- Sort Score
- Result 10 results
- Languages All
Results 71 - 80 of 217 for elem5 (0.04 sec)
-
src/cmd/vendor/golang.org/x/tools/internal/typeparams/coretype.go
for chans := identical; chans < len(terms); chans++ { curr, ok := terms[chans].Type().Underlying().(*types.Chan) if !ok { return nil } if !types.Identical(ch.Elem(), curr.Elem()) { return nil // channel elements are not identical. } if ch.Dir() == types.SendRecv { // ch is bidirectional. We can safely always use curr's direction. ch = curr
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 04 16:19:04 UTC 2024 - 5.3K bytes - Viewed (0) -
tests/fuzz/crd_roundtrip_fuzzer.go
func roundTrip(codec runtime.Codec, object runtime.Object) { printer := spew.ConfigState{DisableMethods: true} // deep copy the original object object = object.DeepCopyObject() name := reflect.TypeOf(object).Elem().Name() // encode (serialize) the deep copy using the provided codec data, err := runtime.Encode(codec, object) if err != nil { return }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Mar 01 01:34:15 UTC 2023 - 5.8K bytes - Viewed (0) -
src/cmd/compile/internal/typecheck/iimport.go
// TODO(mdempsky): Store this information directly in the Type's Name. var typeSymIdx = make(map[*types.Type][2]int64) func BaseTypeIndex(t *types.Type) int64 { tbase := t if t.IsPtr() && t.Sym() == nil && t.Elem().Sym() != nil { tbase = t.Elem() } i, ok := typeSymIdx[tbase] if !ok { return -1 } if t != tbase { return i[1] } return i[0]
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jan 26 21:52:50 UTC 2023 - 1.3K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/internal/typesinternal/recv.go
// It also reports whether a Pointer was present. func ReceiverNamed(recv *types.Var) (isPtr bool, named *types.Named) { t := recv.Type() if ptr, ok := aliases.Unalias(t).(*types.Pointer); ok { isPtr = true t = ptr.Elem() } named, _ = aliases.Unalias(t).(*types.Named) return } // Unpointer returns T given *T or an alias thereof. // For all other types it is the identity function. // It does not look at underlying types.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 02:20:05 UTC 2024 - 1.3K bytes - Viewed (0) -
src/cmd/go/internal/mvs/errors.go
for len(stack) > 0 && stack[0].m.Version == "" { stack = stack[1:] } if len(stack) == 0 { b.WriteString(e.Err.Error()) } else { for _, elem := range stack[:len(stack)-1] { fmt.Fprintf(b, "%s %s\n\t", elem.m, elem.nextReason) } // Ensure that the final module path and version are included as part of the // error message. m := stack[len(stack)-1].m
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jun 01 17:22:28 UTC 2023 - 3K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/analysis/passes/errorsas/errorsas.go
} if pt.Elem() == errorType { return errors.New("second argument to errors.As should not be *error") } _, ok = pt.Elem().Underlying().(*types.Interface) if ok || types.Implements(pt.Elem(), errorType.Underlying().(*types.Interface)) { return nil }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Nov 20 21:52:54 UTC 2023 - 2.9K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/conversion/queryparams/convert.go
result := url.Values{} if obj == nil { return result, nil } var sv reflect.Value switch reflect.TypeOf(obj).Kind() { case reflect.Pointer, reflect.Interface: sv = reflect.ValueOf(obj).Elem() default: return nil, fmt.Errorf("expecting a pointer or interface") } st := sv.Type() if !isStructKind(st.Kind()) { return nil, fmt.Errorf("expecting a pointer to a struct") }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Jun 25 16:23:43 UTC 2022 - 4.9K bytes - Viewed (0) -
src/internal/reflectlite/tostring_test.go
return "true" } else { return "false" } case reflect.Pointer: v := val str = typ.String() + "(" if v.IsNil() { str += "0" } else { str += "&" + valueToStringImpl(v.Elem()) } str += ")" return str case reflect.Array, reflect.Slice: v := val str += typ.String() str += "{" for i := 0; i < v.Len(); i++ { if i > 0 { str += ", " }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Oct 26 14:24:17 UTC 2021 - 2.4K bytes - Viewed (0) -
test/fixedbugs/issue63462.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Oct 09 22:23:06 UTC 2023 - 331 bytes - Viewed (0) -
pkg/config/schema/codegen/templates/collections.go.tmpl
{{- if ne .Resource.StatusProto "" }}StatusProto: "{{ .Resource.StatusProto }}",{{end}} ReflectType: reflect.TypeOf(&{{.ClientImport}}.{{.SpecType}}{}).Elem(), {{- if ne .StatusType "" }}StatusType: reflect.TypeOf(&{{.StatusImport}}.{{.StatusType}}{}).Elem(), {{end}} ProtoPackage: "{{ .Resource.ProtoPackage }}", {{- if ne "" .Resource.StatusProtoPackage}}StatusPackage: "{{ .Resource.StatusProtoPackage }}", {{end}}
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Apr 25 14:44:17 UTC 2024 - 2.9K bytes - Viewed (0)