- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for selectStmt (0.13 sec)
-
src/cmd/compile/internal/syntax/parser.go
s.Body = append(s.Body, p.caseClause()) } s.Rbrace = p.pos() p.want(_Rbrace) return s } func (p *parser) selectStmt() *SelectStmt { if trace { defer p.trace("selectStmt")() } s := new(SelectStmt) s.pos = p.pos() p.want(_Select) if !p.got(_Lbrace) { p.syntaxError("missing { after select clause") p.advance(_Case, _Default, _Rbrace)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 62.9K bytes - Viewed (0) -
src/go/printer/testdata/parser.go
colon := p.expect(token.COLON) body := p.parseStmtList() p.closeScope() return &ast.CommClause{pos, comm, colon, body} } func (p *parser) parseSelectStmt() *ast.SelectStmt { if p.trace { defer un(trace(p, "SelectStmt")) } pos := p.expect(token.SELECT) lbrace := p.expect(token.LBRACE) var list []ast.Stmt for p.tok == token.CASE || p.tok == token.DEFAULT {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jul 20 20:19:51 UTC 2023 - 50.5K bytes - Viewed (0) -
src/go/parser/parser.go
colon := p.expect(token.COLON) body := p.parseStmtList() return &ast.CommClause{Case: pos, Comm: comm, Colon: colon, Body: body} } func (p *parser) parseSelectStmt() *ast.SelectStmt { if p.trace { defer un(trace(p, "SelectStmt")) } pos := p.expect(token.SELECT) lbrace := p.expect(token.LBRACE) var list []ast.Stmt for p.tok == token.CASE || p.tok == token.DEFAULT {
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/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/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)