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

Method Ordering_term

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

Source from the content-addressed store, hash-verified

25953}
25954
25955func (p *SQLiteParser) Ordering_term() (localctx IOrdering_termContext) {
25956 localctx = NewOrdering_termContext(p, p.GetParserRuleContext(), p.GetState())
25957 p.EnterRule(localctx, 138, SQLiteParserRULE_ordering_term)
25958 var _la int
25959
25960 p.EnterOuterAlt(localctx, 1)
25961 {
25962 p.SetState(1921)
25963 p.expr(0)
25964 }
25965 p.SetState(1924)
25966 p.GetErrorHandler().Sync(p)
25967 if p.HasError() {
25968 goto errorExit
25969 }
25970 _la = p.GetTokenStream().LA(1)
25971
25972 if _la == SQLiteParserCOLLATE_ {
25973 {
25974 p.SetState(1922)
25975 p.Match(SQLiteParserCOLLATE_)
25976 if p.HasError() {
25977 // Recognition error - abort rule
25978 goto errorExit
25979 }
25980 }
25981 {
25982 p.SetState(1923)
25983 p.Collation_name()
25984 }
25985
25986 }
25987 p.SetState(1927)
25988 p.GetErrorHandler().Sync(p)
25989 if p.HasError() {
25990 goto errorExit
25991 }
25992 _la = p.GetTokenStream().LA(1)
25993
25994 if _la == SQLiteParserASC_ || _la == SQLiteParserDESC_ {
25995 {
25996 p.SetState(1926)
25997 p.Asc_desc()
25998 }
25999
26000 }
26001 p.SetState(1931)
26002 p.GetErrorHandler().Sync(p)
26003 if p.HasError() {
26004 goto errorExit
26005 }
26006 _la = p.GetTokenStream().LA(1)
26007
26008 if _la == SQLiteParserNULLS_ {
26009 {
26010 p.SetState(1929)
26011 p.Match(SQLiteParserNULLS_)
26012 if p.HasError() {

Callers 3

Window_defnMethod · 0.95
Over_clauseMethod · 0.95
Order_by_stmtMethod · 0.95

Calls 6

exprMethod · 0.95
Collation_nameMethod · 0.95
Asc_descMethod · 0.95
NewOrdering_termContextFunction · 0.85
EnterRuleMethod · 0.45
ExitRuleMethod · 0.45

Tested by

no test coverage detected