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

Method Asc_desc

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

Source from the content-addressed store, hash-verified

26117}
26118
26119func (p *SQLiteParser) Asc_desc() (localctx IAsc_descContext) {
26120 localctx = NewAsc_descContext(p, p.GetParserRuleContext(), p.GetState())
26121 p.EnterRule(localctx, 140, SQLiteParserRULE_asc_desc)
26122 var _la int
26123
26124 p.EnterOuterAlt(localctx, 1)
26125 {
26126 p.SetState(1933)
26127 _la = p.GetTokenStream().LA(1)
26128
26129 if !(_la == SQLiteParserASC_ || _la == SQLiteParserDESC_) {
26130 p.GetErrorHandler().RecoverInline(p)
26131 } else {
26132 p.GetErrorHandler().ReportMatch(p)
26133 p.Consume()
26134 }
26135 }
26136
26137errorExit:
26138 if p.HasError() {
26139 v := p.GetError()
26140 localctx.SetException(v)
26141 p.GetErrorHandler().ReportError(p, v)
26142 p.GetErrorHandler().Recover(p, v)
26143 p.SetError(nil)
26144 }
26145 p.ExitRule()
26146 return localctx
26147 goto errorExit // Trick to prevent compiler error if the label is not used
26148}
26149
26150// IFrame_leftContext is an interface to support dynamic dispatch.
26151type IFrame_leftContext interface {

Callers 4

Indexed_columnMethod · 0.95
Column_constraintMethod · 0.95
Ordering_termMethod · 0.95
Expr_asc_descMethod · 0.95

Calls 3

NewAsc_descContextFunction · 0.85
EnterRuleMethod · 0.45
ExitRuleMethod · 0.45

Tested by

no test coverage detected