Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 477 for labels0 (0.32 sec)

  1. src/internal/types/testdata/check/stmt0.go

    	}
    	for y := range 1.5 /* ERROR "cannot range over 1.5 (untyped float constant)" */ {
    		_ = "" /* ERROR "mismatched types untyped string and untyped int" */ + 1
    	}
    }
    
    func labels0() {
    	goto L0
    	goto L1
    	L0:
    	L1:
    	L1 /* ERROR "already declared" */ :
    	if true {
    		goto L2
    		L2:
    		L0 /* ERROR "already declared" */ :
    	}
    	_ = func() {
    		goto L0
    		goto L1
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 19K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/types2/labels.go

    // insert records a new label declaration for the current block.
    // The label must not have been declared before in any block.
    func (b *block) insert(s *syntax.LabeledStmt) {
    	name := s.Label.Value
    	if debug {
    		assert(b.gotoTarget(name) == nil)
    	}
    	labels := b.labels
    	if labels == nil {
    		labels = make(map[string]*syntax.LabeledStmt)
    		b.labels = labels
    	}
    	labels[name] = s
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  3. src/runtime/pprof/label.go

    	"slices"
    	"strings"
    )
    
    type label struct {
    	key   string
    	value string
    }
    
    // LabelSet is a set of labels.
    type LabelSet struct {
    	list []label
    }
    
    // labelContextKey is the type of contextKeys used for profiler labels.
    type labelContextKey struct{}
    
    func labelValue(ctx context.Context) labelMap {
    	labels, _ := ctx.Value(labelContextKey{}).(*labelMap)
    	if labels == nil {
    		return labelMap(nil)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 3K bytes
    - Viewed (0)
  4. src/go/types/labels.go

    // insert records a new label declaration for the current block.
    // The label must not have been declared before in any block.
    func (b *block) insert(s *ast.LabeledStmt) {
    	name := s.Label.Name
    	if debug {
    		assert(b.gotoTarget(name) == nil)
    	}
    	labels := b.labels
    	if labels == nil {
    		labels = make(map[string]*ast.LabeledStmt)
    		b.labels = labels
    	}
    	labels[name] = s
    }
    
    // gotoTarget returns the labeled statement in the current
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  5. src/internal/types/testdata/check/labels.go

    // This file is a modified concatenation of the files
    // $GOROOT/test/label.go and $GOROOT/test/label1.go.
    
    package labels
    
    var x int
    
    func f0() {
    L1 /* ERROR "label L1 declared and not used" */ :
    	for {
    	}
    L2 /* ERROR "label L2 declared and not used" */ :
    	select {
    	}
    L3 /* ERROR "label L3 declared and not used" */ :
    	switch {
    	}
    L4 /* ERROR "label L4 declared and not used" */ :
    	if true {
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  6. pkg/kubelet/kuberuntime/labels.go

    }
    
    // newPodLabels creates pod labels from v1.Pod.
    func newPodLabels(pod *v1.Pod) map[string]string {
    	labels := map[string]string{}
    
    	// Get labels from v1.Pod
    	for k, v := range pod.Labels {
    		labels[k] = v
    	}
    
    	labels[types.KubernetesPodNameLabel] = pod.Name
    	labels[types.KubernetesPodNamespaceLabel] = pod.Namespace
    	labels[types.KubernetesPodUIDLabel] = string(pod.UID)
    
    	return labels
    }
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 22 02:01:31 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  7. pilot/pkg/config/kube/gateway/testdata/deployment/infrastructure-labels-annotations.yaml

              medium: Memory
            name: istio-envoy
          - emptyDir: {}
            name: istio-data
          - downwardAPI:
              items:
              - fieldRef:
                  fieldPath: metadata.labels
                path: labels
              - fieldRef:
                  fieldPath: metadata.annotations
                path: annotations
            name: istio-podinfo
          - name: istio-token
            projected:
              sources:
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon May 13 21:43:20 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  8. pkg/apis/core/v1/helper/helpers_test.go

    			},
    			want: true,
    		},
    		{
    			name: "label does not match MatchLabelExpressions terms",
    			args: args{
    				topologySelectorTerms: []v1.TopologySelectorTerm{
    					{
    						MatchLabelExpressions: []v1.TopologySelectorLabelRequirement{{
    							Key:    "label_1",
    							Values: []string{"label_1_val"},
    						}},
    					},
    				},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 30 23:03:54 UTC 2024
    - 16.9K bytes
    - Viewed (0)
  9. operator/cmd/mesh/manifest-generate_test.go

    	// 3. inject label false
    	// 4. inject label true and revision label
    	// 5. inject label false and revision label
    	// 6. no label
    	// However, we filter out all the disable cases, leaving us with a reasonable number of cases
    	testLabels := []LabelSet{}
    	for _, namespaceLabel := range []klabels.Set{empty, revLabel, legacyLabel, legacyLabelDisabled, legacyAndRevLabel, legacyDisabledAndRevLabel} {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Jun 04 18:05:06 UTC 2024
    - 43.5K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiserver/pkg/storage/selection_predicate.go

    // Matches returns true if the given object's labels and fields (as
    // returned by s.GetAttrs) match s.Label and s.Field. An error is
    // returned if s.GetAttrs fails.
    func (s *SelectionPredicate) Matches(obj runtime.Object) (bool, error) {
    	if s.Empty() {
    		return true, nil
    	}
    	labels, fields, err := s.GetAttrs(obj)
    	if err != nil {
    		return false, err
    	}
    	matched := s.Label.Matches(labels)
    	if matched && s.Field != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 09:20:10 UTC 2024
    - 5.6K bytes
    - Viewed (0)
Back to top