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

Method Order_by_stmt

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

Source from the content-addressed store, hash-verified

25569}
25570
25571func (p *SQLiteParser) Order_by_stmt() (localctx IOrder_by_stmtContext) {
25572 localctx = NewOrder_by_stmtContext(p, p.GetParserRuleContext(), p.GetState())
25573 p.EnterRule(localctx, 134, SQLiteParserRULE_order_by_stmt)
25574 var _la int
25575
25576 p.EnterOuterAlt(localctx, 1)
25577 {
25578 p.SetState(1905)
25579 p.Match(SQLiteParserORDER_)
25580 if p.HasError() {
25581 // Recognition error - abort rule
25582 goto errorExit
25583 }
25584 }
25585 {
25586 p.SetState(1906)
25587 p.Match(SQLiteParserBY_)
25588 if p.HasError() {
25589 // Recognition error - abort rule
25590 goto errorExit
25591 }
25592 }
25593 {
25594 p.SetState(1907)
25595 p.Ordering_term()
25596 }
25597 p.SetState(1912)
25598 p.GetErrorHandler().Sync(p)
25599 if p.HasError() {
25600 goto errorExit
25601 }
25602 _la = p.GetTokenStream().LA(1)
25603
25604 for _la == SQLiteParserCOMMA {
25605 {
25606 p.SetState(1908)
25607 p.Match(SQLiteParserCOMMA)
25608 if p.HasError() {
25609 // Recognition error - abort rule
25610 goto errorExit
25611 }
25612 }
25613 {
25614 p.SetState(1909)
25615 p.Ordering_term()
25616 }
25617
25618 p.SetState(1914)
25619 p.GetErrorHandler().Sync(p)
25620 if p.HasError() {
25621 goto errorExit
25622 }
25623 _la = p.GetTokenStream().LA(1)
25624 }
25625
25626errorExit:
25627 if p.HasError() {
25628 v := p.GetError()

Callers 5

Delete_stmt_limitedMethod · 0.95
Select_stmtMethod · 0.95
Simple_select_stmtMethod · 0.95
Compound_select_stmtMethod · 0.95
Update_stmt_limitedMethod · 0.95

Calls 4

Ordering_termMethod · 0.95
NewOrder_by_stmtContextFunction · 0.85
EnterRuleMethod · 0.45
ExitRuleMethod · 0.45

Tested by

no test coverage detected