- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 1,086 for labelOk (0.18 sec)
-
src/go/parser/testdata/resolution/resolution.src
} } type c /* =@cdecl */ map[token.Pos]resolvedObj func (v /* =@vdecl */ c /* @cdecl */) Visit(node /* =@nodearg */ ast.Node) (w /* =@w */ ast.Visitor) {} const ( basic /* =@basic */ = iota labelOk // =@labelOk ) type T /* =@T */ int func _(count /* =@count */ T /* @T */) { x /* =@x1 */ := c /* @cdecl */{} switch x /* =@x2 */ := x /* @x1 */; x /* =@x3 */ := x /* @x2 */.(type) { case c /* @cdecl */:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 16 21:19:23 UTC 2021 - 1.5K bytes - Viewed (0) -
src/go/parser/parser.go
} switch p.tok { case token.COLON: // labeled statement colon := p.pos p.next() if label, isIdent := x[0].(*ast.Ident); mode == labelOk && isIdent { // Go spec: The scope of a label is the body of the function // in which it is declared and excludes the body of any nested // function. stmt := &ast.LabeledStmt{Label: label, Colon: colon, Stmt: p.parseStmt()} return stmt, false }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Dec 08 20:07:50 UTC 2023 - 72.2K bytes - Viewed (0) -
src/go/printer/testdata/parser.go
} switch p.tok { case token.COLON: // labeled statement colon := p.pos p.next() if label, isIdent := x[0].(*ast.Ident); labelOk && isIdent { // Go spec: The scope of a label is the body of the function // in which it is declared and excludes the body of any nested // function. stmt := &ast.LabeledStmt{label, colon, p.parseStmt()} p.declare(stmt, p.labelScope, ast.Lbl, label)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jul 20 20:19:51 UTC 2023 - 50.5K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/labels/labels.go
mergedMap[k] = v } for k, v := range labels2 { mergedMap[k] = v } return mergedMap } // Equals returns true if the given maps are equal func Equals(labels1, labels2 Set) bool { if len(labels1) != len(labels2) { return false } for k, v := range labels1 { value, ok := labels2[k] if !ok { return false } if value != v { return false }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Nov 14 16:39:04 UTC 2022 - 4.5K bytes - Viewed (0) -
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) -
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) -
.github/workflows/labeler.yml
name: "Issue Labeler" on: issues: types: [opened, edited, reopened] pull_request: types: [opened, edited, reopened] jobs: triage: runs-on: ubuntu-latest name: Label issues and pull requests steps: - name: check out uses: actions/checkout@v4 - name: labeler uses: jinzhu/super-labeler-action@develop with:
Registered: Wed Jun 12 16:27:09 UTC 2024 - Last Modified: Tue Oct 10 06:50:45 UTC 2023 - 423 bytes - Viewed (0) -
operator/pkg/compare/compare_test.go
namespace: istio-system labels: - label1 - label2 - label3 `, b: `apiVersion: autoscaling/v2 kind: HorizontalPodAutoscaler metadata: name: istio-ingressgateway namespace: istio-system labels: - label1 - label5 - label6 `, want: `metadata: labels: '[#1]': label2 -> label5 '[#2]': label3 -> label6 `, }, {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Dec 21 02:18:20 UTC 2022 - 33K bytes - Viewed (0) -
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) -
pkg/util/labels/labels.go
for key, value := range labels { newLabels[key] = value } delete(newLabels, labelKey) return newLabels } // AddLabel returns a map with the given key and value added to the given map. func AddLabel(labels map[string]string, labelKey, labelValue string) map[string]string { if labelKey == "" { // Don't need to add a label. return labels } if labels == nil { labels = make(map[string]string) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jan 11 17:34:12 UTC 2017 - 3.7K bytes - Viewed (0)