- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 40 for selectStmt (0.33 sec)
-
src/go/types/stmt.go
} v.used = true // avoid usage error when checking entire function } if !used { check.softErrorf(lhs, UnusedVar, "%s declared and not used", lhs.Name) } } case *ast.SelectStmt: inner |= breakOk check.multipleDefaults(s.Body.List) for _, s := range s.Body.List { clause, _ := s.(*ast.CommClause) if clause == nil { continue // error reported before }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 30.6K bytes - Viewed (0) -
src/cmd/compile/internal/types2/stmt.go
check.simpleStmt(s.Init) if g, _ := s.Tag.(*syntax.TypeSwitchGuard); g != nil { check.typeSwitchStmt(inner|inTypeSwitch, s, g) } else { check.switchStmt(inner, s) } case *syntax.SelectStmt: inner |= breakOk check.multipleSelectDefaults(s.Body) for i, clause := range s.Body { if clause == nil { continue // error reported before }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 30.7K bytes - Viewed (0) -
src/cmd/compile/internal/typecheck/typecheck.go
n.Call = typecheck(n.Call, ctxStmt|ctxExpr).(*ir.CallExpr) return n case ir.OCHECKNIL: n := n.(*ir.UnaryExpr) return tcCheckNil(n) case ir.OSELECT: tcSelect(n.(*ir.SelectStmt)) return n case ir.OSWITCH: tcSwitch(n.(*ir.SwitchStmt)) return n case ir.ORANGE: tcRange(n.(*ir.RangeStmt)) return n case ir.OTYPESW: n := n.(*ir.TypeSwitchGuard)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Mar 20 19:08:34 UTC 2024 - 30.5K bytes - Viewed (0) -
src/cmd/compile/internal/walk/order.go
// reordered after the channel evaluation for a different // case (if p were nil, then the timing of the fault would // give this away). case ir.OSELECT: n := n.(*ir.SelectStmt) t := o.markTemp() for _, ncas := range n.Cases { r := ncas.Comm ir.SetPos(ncas) // Append any new body prologue to ninit. // The next loop will insert ninit into nbody.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Mar 08 02:00:33 UTC 2024 - 42.7K bytes - Viewed (0) -
src/go/printer/nodes.go
p.print(token.CASE, blank) p.stmt(s.Comm, false) } else { p.print(token.DEFAULT) } p.setPos(s.Colon) p.print(token.COLON) p.stmtList(s.Body, 1, nextIsRBrace) case *ast.SelectStmt: p.print(token.SELECT, blank) body := s.Body if len(body.List) == 0 && !p.commentBefore(p.posFor(body.Rbrace)) { // print empty select statement w/o comments on one line p.setPos(body.Lbrace)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Oct 17 18:53:17 UTC 2023 - 52.6K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go
{"ReturnStmt.Return", Field, 0}, {"SEND", Const, 0}, {"Scope", Type, 0}, {"Scope.Objects", Field, 0}, {"Scope.Outer", Field, 0}, {"SelectStmt", Type, 0}, {"SelectStmt.Body", Field, 0}, {"SelectStmt.Select", Field, 0}, {"SelectorExpr", Type, 0}, {"SelectorExpr.Sel", Field, 0}, {"SelectorExpr.X", Field, 0}, {"SendStmt", Type, 0}, {"SendStmt.Arrow", Field, 0},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 02:20:05 UTC 2024 - 534.2K bytes - Viewed (0) -
src/cmd/compile/internal/types2/api_test.go
case *syntax.FuncType: kind = "func" case *syntax.BlockStmt: kind = "block" case *syntax.IfStmt: kind = "if" case *syntax.SwitchStmt: kind = "switch" case *syntax.SelectStmt: kind = "select" case *syntax.CaseClause: kind = "case" case *syntax.CommClause: kind = "comm" case *syntax.ForStmt: kind = "for" default:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 07 20:08:23 UTC 2024 - 93.3K bytes - Viewed (0) -
doc/go1.17_spec.html
</p> <pre class="ebnf"> Statement = Declaration | LabeledStmt | SimpleStmt | GoStmt | ReturnStmt | BreakStmt | ContinueStmt | GotoStmt | FallthroughStmt | Block | IfStmt | SwitchStmt | SelectStmt | ForStmt | DeferStmt . SimpleStmt = EmptyStmt | ExpressionStmt | SendStmt | IncDecStmt | Assignment | ShortVarDecl . </pre> <h3 id="Terminating_statements">Terminating statements</h3> <p>
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 11 20:22:45 UTC 2024 - 211.6K bytes - Viewed (0) -
doc/go_spec.html
</p> <pre class="ebnf"> Statement = Declaration | LabeledStmt | SimpleStmt | GoStmt | ReturnStmt | BreakStmt | ContinueStmt | GotoStmt | FallthroughStmt | Block | IfStmt | SwitchStmt | SelectStmt | ForStmt | DeferStmt . SimpleStmt = EmptyStmt | ExpressionStmt | SendStmt | IncDecStmt | Assignment | ShortVarDecl . </pre> <h3 id="Terminating_statements">Terminating statements</h3> <p>
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 04 21:07:21 UTC 2024 - 281.5K bytes - Viewed (1) -
src/cmd/compile/internal/ssagen/ssa.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jun 10 19:44:43 UTC 2024 - 284.9K bytes - Viewed (0)