- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 45 for Deref (0.04 sec)
-
src/go/types/methodset.go
// in the same package as the method."). if t := asNamed(T); t != nil && isPointer(t) { return &emptyMethodSet } // method set up to the current depth, allocated lazily var base methodSet typ, isPtr := deref(T) // *typ where typ is an interface has no methods. if isPtr && IsInterface(typ) { return &emptyMethodSet } // Start with typ as single entry at shallowest depth.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 12:02:03 UTC 2023 - 7.1K bytes - Viewed (0) -
pkg/scheduler/framework/plugins/podtopologyspread/common.go
} } tsc := topologySpreadConstraint{ MaxSkew: c.MaxSkew, TopologyKey: c.TopologyKey, Selector: selector, MinDomains: ptr.Deref(c.MinDomains, 1), // If MinDomains is nil, we treat MinDomains as 1. NodeAffinityPolicy: v1.NodeInclusionPolicyHonor, // If NodeAffinityPolicy is nil, we treat NodeAffinityPolicy as "Honor".
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Feb 28 10:42:29 UTC 2024 - 5.6K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/analysis/passes/composite/composite.go
structuralTypes = append(structuralTypes, term.Type()) } default: structuralTypes = append(structuralTypes, typ) } for _, typ := range structuralTypes { strct, ok := typeparams.Deref(typ).Underlying().(*types.Struct) if !ok { // skip non-struct composite literals continue } if isLocalType(pass, typ) { // allow unkeyed locally defined composite literal continue }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 02:20:05 UTC 2024 - 4.4K bytes - Viewed (0) -
src/cmd/compile/internal/walk/closure.go
for _, v := range clofn.ClosureVars { if !v.Byval() { // If v of type T is captured by reference, // we introduce function param &v *T // and v remains PAUTOHEAP with &v heapaddr // (accesses will implicitly deref &v). addr := ir.NewNameAt(clofn.Pos(), typecheck.Lookup("&"+v.Sym().Name), types.NewPtr(v.Type())) addr.Curfn = clofn v.Heapaddr = addr v = addr } v.Class = ir.PPARAM
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Nov 20 15:56:08 UTC 2023 - 6.5K bytes - Viewed (0) -
src/cmd/compile/internal/walk/convert.go
// zero-length array, then x (and thus (*T)(x)) can be nil, but T(x) // should *not* panic. So suppressing the nil check here is // necessary for correctness in that case. deref.SetBounded(true) return walkExpr(deref, init)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Oct 09 17:28:22 UTC 2023 - 18.2K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/storage/feature/feature_support_checker.go
func (f *defaultFeatureSupportChecker) Supports(feature storage.Feature) bool { switch feature { case storage.RequestWatchProgress: f.lock.Lock() defer f.lock.Unlock() return ptr.Deref(f.progressNotifySupported, false) default: runtime.HandleError(fmt.Errorf("feature %q is not implemented in DefaultFeatureSupportChecker", feature)) return false } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri May 10 11:56:42 UTC 2024 - 6.2K bytes - Viewed (0) -
pkg/controller/job/backoff_utils.go
} return nil } func getFinishTimeFromDeletionTimestamp(p *v1.Pod) *time.Time { if p.DeletionTimestamp != nil { finishTime := p.DeletionTimestamp.Time.Add(-time.Duration(ptr.Deref(p.DeletionGracePeriodSeconds, 0)) * time.Second) return &finishTime } return nil }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Jun 06 07:46:41 UTC 2024 - 8.3K bytes - Viewed (0) -
pkg/apis/batch/validation/validation.go
} } if spec.PodFailurePolicy != nil { allErrs = append(allErrs, validatePodFailurePolicy(spec, fldPath.Child("podFailurePolicy"))...) } if spec.SuccessPolicy != nil { if ptr.Deref(spec.CompletionMode, batch.NonIndexedCompletion) != batch.IndexedCompletion { allErrs = append(allErrs, field.Invalid(fldPath.Child("successPolicy"), *spec.SuccessPolicy, "requires indexed completion mode")) } else {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Mar 08 16:43:24 UTC 2024 - 51.2K bytes - Viewed (0) -
pkg/controller/cronjob/utils.go
name := getJobName(cj, scheduledTime) if utilfeature.DefaultFeatureGate.Enabled(features.CronJobsScheduledAnnotation) { timeZoneLocation, err := time.LoadLocation(ptr.Deref(cj.Spec.TimeZone, "")) if err != nil { return nil, err } // Append job creation timestamp to the cronJob annotations. The time will be in RFC3339 form.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu May 09 03:34:25 UTC 2024 - 10.7K bytes - Viewed (0) -
src/runtime/callers_test.go
// at runtime.sigpanic, because non-open-coded defers (which may be used in // non-opt or race checker mode) include an extra 'deferreturn' frame (which is // where the nil pointer deref happens). state := 1 want := []string{"runtime.Callers", "runtime_test.TestCallersDeferNilFuncPanic.func1", "runtime.gopanic", "runtime.panicmem", "runtime.sigpanic"} defer func() {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Aug 28 21:36:31 UTC 2023 - 12.1K bytes - Viewed (0)