MCPcopy Index your code
hub / github.com/sqlc-dev/sqlc / Select_stmt

Method Select_stmt

internal/engine/sqlite/parser/sqlite_parser.go:17435–17532  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

17433}
17434
17435func (p *SQLiteParser) Select_stmt() (localctx ISelect_stmtContext) {
17436 localctx = NewSelect_stmtContext(p, p.GetParserRuleContext(), p.GetState())
17437 p.EnterRule(localctx, 84, SQLiteParserRULE_select_stmt)
17438 var _la int
17439
17440 var _alt int
17441
17442 p.EnterOuterAlt(localctx, 1)
17443 p.SetState(1295)
17444 p.GetErrorHandler().Sync(p)
17445 if p.HasError() {
17446 goto errorExit
17447 }
17448 _la = p.GetTokenStream().LA(1)
17449
17450 if _la == SQLiteParserWITH_ {
17451 {
17452 p.SetState(1294)
17453 p.Common_table_stmt()
17454 }
17455
17456 }
17457 {
17458 p.SetState(1297)
17459 p.Select_core()
17460 }
17461 p.SetState(1303)
17462 p.GetErrorHandler().Sync(p)
17463 if p.HasError() {
17464 goto errorExit
17465 }
17466 _alt = p.GetInterpreter().AdaptivePredict(p.BaseParser, p.GetTokenStream(), 174, p.GetParserRuleContext())
17467 if p.HasError() {
17468 goto errorExit
17469 }
17470 for _alt != 2 && _alt != antlr.ATNInvalidAltNumber {
17471 if _alt == 1 {
17472 {
17473 p.SetState(1298)
17474 p.Compound_operator()
17475 }
17476 {
17477 p.SetState(1299)
17478 p.Select_core()
17479 }
17480
17481 }
17482 p.SetState(1305)
17483 p.GetErrorHandler().Sync(p)
17484 if p.HasError() {
17485 goto errorExit
17486 }
17487 _alt = p.GetInterpreter().AdaptivePredict(p.BaseParser, p.GetTokenStream(), 174, p.GetParserRuleContext())
17488 if p.HasError() {
17489 goto errorExit
17490 }
17491 }
17492 p.SetState(1307)

Callers 12

Sql_stmtMethod · 0.95
Create_table_stmtMethod · 0.95
Create_trigger_stmtMethod · 0.95
Create_view_stmtMethod · 0.95
With_clauseMethod · 0.95
exprMethod · 0.95
Insert_stmtMethod · 0.95
Factored_select_stmtMethod · 0.95
Table_or_subqueryMethod · 0.95
Initial_selectMethod · 0.95
Recursive__selectMethod · 0.95

Calls 8

Common_table_stmtMethod · 0.95
Select_coreMethod · 0.95
Compound_operatorMethod · 0.95
Order_by_stmtMethod · 0.95
Limit_stmtMethod · 0.95
NewSelect_stmtContextFunction · 0.85
EnterRuleMethod · 0.45
ExitRuleMethod · 0.45

Tested by

no test coverage detected