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

Method Expr_asc_desc

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

Source from the content-addressed store, hash-verified

28447}
28448
28449func (p *SQLiteParser) Expr_asc_desc() (localctx IExpr_asc_descContext) {
28450 localctx = NewExpr_asc_descContext(p, p.GetParserRuleContext(), p.GetState())
28451 p.EnterRule(localctx, 160, SQLiteParserRULE_expr_asc_desc)
28452 var _la int
28453
28454 p.EnterOuterAlt(localctx, 1)
28455 {
28456 p.SetState(2079)
28457 p.expr(0)
28458 }
28459 p.SetState(2081)
28460 p.GetErrorHandler().Sync(p)
28461 if p.HasError() {
28462 goto errorExit
28463 }
28464 _la = p.GetTokenStream().LA(1)
28465
28466 if _la == SQLiteParserASC_ || _la == SQLiteParserDESC_ {
28467 {
28468 p.SetState(2080)
28469 p.Asc_desc()
28470 }
28471
28472 }
28473 p.SetState(2090)
28474 p.GetErrorHandler().Sync(p)
28475 if p.HasError() {
28476 goto errorExit
28477 }
28478 _la = p.GetTokenStream().LA(1)
28479
28480 for _la == SQLiteParserCOMMA {
28481 {
28482 p.SetState(2083)
28483 p.Match(SQLiteParserCOMMA)
28484 if p.HasError() {
28485 // Recognition error - abort rule
28486 goto errorExit
28487 }
28488 }
28489 {
28490 p.SetState(2084)
28491 p.expr(0)
28492 }
28493 p.SetState(2086)
28494 p.GetErrorHandler().Sync(p)
28495 if p.HasError() {
28496 goto errorExit
28497 }
28498 _la = p.GetTokenStream().LA(1)
28499
28500 if _la == SQLiteParserASC_ || _la == SQLiteParserDESC_ {
28501 {
28502 p.SetState(2085)
28503 p.Asc_desc()
28504 }
28505
28506 }

Callers

nothing calls this directly

Calls 5

exprMethod · 0.95
Asc_descMethod · 0.95
NewExpr_asc_descContextFunction · 0.85
EnterRuleMethod · 0.45
ExitRuleMethod · 0.45

Tested by

no test coverage detected