MCPcopy Create free account
hub / github.com/despiteallobjections/amigo / selectStmt

Method selectStmt

syntax/parser.go:2444–2466  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2442}
2443
2444func (p *parser) selectStmt() *SelectStmt {
2445 if trace {
2446 defer p.trace("selectStmt")()
2447 }
2448
2449 s := new(SelectStmt)
2450 s.pos = p.pos()
2451
2452 p.want(_Select)
2453 p.async(func() {
2454 if !p.got(_Lbrace) {
2455 p.syntaxError("missing { after select clause")
2456 p.advance(_Case, _Default, _Rbrace)
2457 }
2458 for p.tok != _EOF && p.tok != _Rbrace {
2459 s.Body = append(s.Body, p.commClause())
2460 }
2461 s.Rbrace = p.pos()
2462 p.want(_Rbrace)
2463 })
2464
2465 return s
2466}
2467
2468func (p *parser) caseClause() *CaseClause {
2469 if trace {

Callers 1

stmtOrNilMethod · 0.95

Calls 10

traceMethod · 0.95
posMethod · 0.95
wantMethod · 0.95
asyncMethod · 0.95
gotMethod · 0.95
syntaxErrorMethod · 0.95
advanceMethod · 0.95
commClauseMethod · 0.95
newFunction · 0.50
appendFunction · 0.50

Tested by

no test coverage detected