- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 46 for Deref (0.05 sec)
-
src/go/types/object.go
// check if the receiver is set (we cannot just look for non-nil obj.typ). if sig, _ := obj.typ.(*Signature); sig != nil && sig.recv != nil { _, isPtr := deref(sig.recv.typ) return isPtr } // If a method's type is not set it may be a method/function that is: // 1) client-supplied (via NewFunc with no signature), or // 2) internally created but not yet type-checked.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 07 20:08:23 UTC 2024 - 20.1K bytes - Viewed (0) -
src/cmd/compile/internal/types2/named.go
assert(origm != nil) check := t.check // Ensure that the original method is type-checked. if check != nil { check.objDecl(origm, nil) } origSig := origm.typ.(*Signature) rbase, _ := deref(origSig.Recv().Type()) // If rbase is t, then origm is already the instantiated method we're looking // for. In this case, we return origm to preserve the invariant that
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 15 20:03:31 UTC 2024 - 23.9K bytes - Viewed (0) -
pkg/apis/networking/validation/validation.go
Kind: params.Kind, Name: params.Name, }, fldPath)...) if params.Scope == nil { allErrs = append(allErrs, field.Required(fldPath.Child("scope"), "")) return allErrs } scope := ptr.Deref(params.Scope, "") if !supportedIngressClassParametersReferenceScopes.Has(scope) { allErrs = append(allErrs, field.NotSupported(fldPath.Child("scope"), scope, supportedIngressClassParametersReferenceScopes.List()))
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Feb 07 14:48:01 UTC 2024 - 31.5K bytes - Viewed (0) -
src/cmd/cgo/gcc.go
if !ok { return false } addr := "" deref := "" if p.isVariable(index.X) { addr = "&" deref = "*" } fmt.Fprintf(sb, "_cgoIndex%d := %s%s; ", i, addr, gofmtPos(index.X, index.X.Pos())) origX := index.X index.X = ast.NewIdent(fmt.Sprintf("_cgoIndex%d", i)) if deref == "*" { index.X = &ast.StarExpr{X: index.X} }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 20 15:50:06 UTC 2024 - 97K bytes - Viewed (0) -
src/cmd/compile/internal/typecheck/expr.go
n.SetType(nil) return n } // TODO(mdempsky): Remove (along with ctxType above) once I'm // confident this code path isn't needed any more. if l.Op() == ir.OTYPE { base.Fatalf("unexpected type in deref expression: %v", l) } if !t.IsPtr() { if top&(ctxExpr|ctxStmt) != 0 { base.Errorf("invalid indirect of %L", n.X) n.SetType(nil) return n } base.Errorf("%v is not a type", l)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 04 14:29:45 UTC 2024 - 23.1K bytes - Viewed (0) -
src/go/types/named.go
assert(origm != nil) check := t.check // Ensure that the original method is type-checked. if check != nil { check.objDecl(origm, nil) } origSig := origm.typ.(*Signature) rbase, _ := deref(origSig.Recv().Type()) // If rbase is t, then origm is already the instantiated method we're looking // for. In this case, we return origm to preserve the invariant that
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 15 20:03:31 UTC 2024 - 24K bytes - Viewed (0) -
pkg/controller/cronjob/cronjob_controllerv2.go
// The CronJob is being deleted. // Don't do anything other than updating status. return nil, updateStatus, nil } logger := klog.FromContext(ctx) if cronJob.Spec.TimeZone != nil { timeZone := ptr.Deref(cronJob.Spec.TimeZone, "") if _, err := time.LoadLocation(timeZone); err != nil { logger.V(4).Info("Not starting job because timeZone is invalid", "cronjob", klog.KObj(cronJob), "timeZone", timeZone, "err", err)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu May 09 03:34:25 UTC 2024 - 29.2K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/validation.go
if compiled.Program == nil { // rule is empty continue } // If ratcheting is enabled, allow rule with oldSelf to evaluate // when `optionalOldSelf` is set to true optionalOldSelfRule := ptr.Deref(rule.OptionalOldSelf, false) if compiled.UsesOldSelf && oldObj == nil { // transition rules are evaluated only if there is a comparable existing value // But if the rule uses optional oldSelf and gate is enabled we allow
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon May 20 18:21:31 UTC 2024 - 32.2K bytes - Viewed (0) -
pkg/controller/resourceclaim/controller.go
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu May 09 03:34:25 UTC 2024 - 37.1K bytes - Viewed (0) -
pkg/controller/job/job_controller_test.go
t.Errorf("unexpected number of failed pods. Expected %d, saw %d\n", tc.wantStatusFailed, actual.Status.Failed) } if ptr.Deref(actual.Status.Terminating, 0) != ptr.Deref(tc.wantStatusTerminating, 0) { t.Errorf("unexpected number of terminating pods. Expected %d, saw %d\n", ptr.Deref(tc.wantStatusTerminating, 0), ptr.Deref(actual.Status.Terminating, 0)) } }) } } func TestSyncJobWithJobSuccessPolicy(t *testing.T) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 11 15:36:36 UTC 2024 - 229.2K bytes - Viewed (0)