Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 53 for Deref (0.04 sec)

  1. 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)
  2. test/method.go

    		A(a).h() // dynamic error: nil dereference in A().B.D->f()
    	}()
    	A(a).i()
    
    	// Pointer receiver.
    	(&a).f()
    	(&a).g()
    	func() {
    		defer expectPanic()
    		(&a).h() // dynamic error: nil deref: nil dereference in (&a).B.D->f()
    	}()
    	(&a).i()
    
    	c := new(C)
    	c.f() // makes a copy
    	c.g()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 11 23:20:52 UTC 2013
    - 5.2K bytes
    - Viewed (0)
  3. 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)
  4. 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)
  5. 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)
  6. src/go/printer/testdata/parser.go

    	case *ast.StructType:
    	case *ast.MapType:
    	default:
    		return false // all other nodes are not legal composite literal types
    	}
    	return true
    }
    
    // If x is of the form *T, deref returns T, otherwise it returns x.
    func deref(x ast.Expr) ast.Expr {
    	if p, isPtr := x.(*ast.StarExpr); isPtr {
    		x = p.X
    	}
    	return x
    }
    
    // checkExprOrType checks that x is an expression or a type
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 20 20:19:51 UTC 2023
    - 50.5K bytes
    - Viewed (0)
  7. 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)
  8. 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)
  9. src/go/types/signature.go

    		// of types the receiver type is dependent on (see issues go.dev/issue/51232, go.dev/issue/51233).
    		check.later(func() {
    			// spec: "The receiver type must be of the form T or *T where T is a type name."
    			rtyp, _ := deref(recv.typ)
    			atyp := Unalias(rtyp)
    			if !isValid(atyp) {
    				return // error was reported before
    			}
    			// spec: "The type denoted by T is called the receiver base type; it must not
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 29 22:06:18 UTC 2024
    - 13K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/types2/signature.go

    		// of types the receiver type is dependent on (see issues go.dev/issue/51232, go.dev/issue/51233).
    		check.later(func() {
    			// spec: "The receiver type must be of the form T or *T where T is a type name."
    			rtyp, _ := deref(recv.typ)
    			atyp := Unalias(rtyp)
    			if !isValid(atyp) {
    				return // error was reported before
    			}
    			// spec: "The type denoted by T is called the receiver base type; it must not
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 21:33:05 UTC 2024
    - 12.6K bytes
    - Viewed (0)
Back to top