Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for Lbl (0.23 sec)

  1. src/go/types/labels.go

    	}
    
    	// spec: "It is illegal to define a label that is never used."
    	for name, obj := range all.elems {
    		obj = resolve(name, obj)
    		if lbl := obj.(*Label); !lbl.used {
    			check.softErrorf(lbl, UnusedLabel, "label %s declared and not used", lbl.name)
    		}
    	}
    }
    
    // A block tracks label declarations in a block and its enclosing blocks.
    type block struct {
    	parent *block                      // enclosing block
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/types2/labels.go

    	}
    
    	// spec: "It is illegal to define a label that is never used."
    	for name, obj := range all.elems {
    		obj = resolve(name, obj)
    		if lbl := obj.(*Label); !lbl.used {
    			check.softErrorf(lbl.pos, UnusedLabel, "label %s declared and not used", lbl.name)
    		}
    	}
    }
    
    // A block tracks label declarations in a block and its enclosing blocks.
    type block struct {
    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/go/ast/scope.go

    	Typ                // type
    	Var                // variable
    	Fun                // function or method
    	Lbl                // label
    )
    
    var objKindStrings = [...]string{
    	Bad: "bad",
    	Pkg: "package",
    	Con: "const",
    	Typ: "type",
    	Var: "var",
    	Fun: "func",
    	Lbl: "label",
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 28 21:32:41 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  4. cmd/bucket-replication-metrics.go

    	histBytes  metrics.Histogram
    }
    
    func newInQueueStats(r metrics.Registry, lbl string) InQueueStats {
    	histCounts := metrics.NewHistogram(metrics.NewUniformSample(100))
    	histBytes := metrics.NewHistogram(metrics.NewUniformSample(100))
    
    	r.Register("replication.queue.counts."+lbl, histCounts)
    	r.Register("replication.queue.bytes."+lbl, histBytes)
    
    	return InQueueStats{
    		histCounts: histCounts,
    		histBytes:  histBytes,
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Feb 06 06:00:45 UTC 2024
    - 14.2K bytes
    - Viewed (0)
  5. cni/pkg/plugin/plugin.go

    		return nil
    	}
    
    	val := pi.Annotations[injectAnnotationKey]
    	if lbl, labelPresent := pi.Labels[label.SidecarInject.Name]; labelPresent {
    		// The label is the new API; if both are present we prefer the label
    		val = lbl
    	}
    	if val != "" {
    		log.Debugf("contains inject annotation: %s", val)
    		if injectEnabled, err := strconv.ParseBool(val); err == nil {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jun 12 16:26:35 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  6. src/runtime/mprof.go

    	})
    
    	if n <= len(p) {
    		ok = true
    		r, lbl := p, labels
    
    		// Save current goroutine.
    		sp := getcallersp()
    		pc := getcallerpc()
    		systemstack(func() {
    			saveg(pc, sp, gp, &r[0], pcbuf)
    		})
    		r = r[1:]
    
    		// If we have a place to put our goroutine labelmap, insert it there.
    		if labels != nil {
    			lbl[0] = gp.labels
    			lbl = lbl[1:]
    		}
    
    		// Save other goroutines.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:57:37 UTC 2024
    - 53.3K bytes
    - Viewed (0)
  7. pkg/kube/inject/inject.go

    	var useDefault bool
    	var inject bool
    
    	objectSelector := annos[annotation.SidecarInject.Name]
    	if lbl, labelPresent := metadata.GetLabels()[label.SidecarInject.Name]; labelPresent {
    		// The label is the new API; if both are present we prefer the label
    		objectSelector = lbl
    	}
    	switch strings.ToLower(objectSelector) {
    	// http://yaml.org/type/bool.html
    	case "y", "yes", "true", "on":
    		inject = true
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 31 20:35:11 UTC 2024
    - 28.8K bytes
    - Viewed (0)
  8. tools/bug-report/pkg/bugreport/bugreport.go

    Proxy logs can be filtered using:
      --include|--exclude ns1,ns2.../dep1,dep2.../pod1,pod2.../lbl1=val1,lbl2=val2.../ann1=val1,ann2=val2.../cntr1,cntr...
    where ns=namespace, dep=deployment, lbl=label, ann=annotation, cntr=container
    
    The filter spec is interpreted as 'must be in (ns1 OR ns2) AND (dep1 OR dep2) AND (cntr1 OR cntr2)...'
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Apr 05 20:57:29 UTC 2024
    - 20.7K bytes
    - Viewed (0)
  9. src/go/parser/parser_test.go

    		"p":   ast.Bad, // not in a scope
    		"fmt": ast.Bad, // not resolved yet
    		"pi":  ast.Con,
    		"T":   ast.Typ,
    		"x":   ast.Var,
    		"int": ast.Bad, // not resolved yet
    		"f":   ast.Fun,
    		"L":   ast.Lbl,
    	}
    
    	ast.Inspect(f, func(n ast.Node) bool {
    		if ident, ok := n.(*ast.Ident); ok {
    			obj := ident.Obj
    			if obj == nil {
    				if objects[ident.Name] != ast.Bad {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 31 20:26:14 UTC 2024
    - 24.6K bytes
    - Viewed (0)
  10. cmd/admin-handlers.go

    			1: "spfx",
    			3: "ssfx",
    		}
    		for pi, poolsMatch := range poolsMatches {
    			// Replace the server prefix/suffix with anonymized ones
    			for idx, lbl := range idxMap {
    				if len(poolsMatch[idx]) > 0 {
    					poolsMatch[idx] = fmt.Sprintf("%s%d", lbl, crc32.ChecksumIEEE([]byte(poolsMatch[idx])))
    				}
    			}
    
    			// Remove the original pools args present at index 0
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 98K bytes
    - Viewed (0)
Back to top