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

Method Frame_left

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

Source from the content-addressed store, hash-verified

26255}
26256
26257func (p *SQLiteParser) Frame_left() (localctx IFrame_leftContext) {
26258 localctx = NewFrame_leftContext(p, p.GetParserRuleContext(), p.GetState())
26259 p.EnterRule(localctx, 142, SQLiteParserRULE_frame_left)
26260 p.SetState(1945)
26261 p.GetErrorHandler().Sync(p)
26262 if p.HasError() {
26263 goto errorExit
26264 }
26265
26266 switch p.GetInterpreter().AdaptivePredict(p.BaseParser, p.GetTokenStream(), 290, p.GetParserRuleContext()) {
26267 case 1:
26268 p.EnterOuterAlt(localctx, 1)
26269 {
26270 p.SetState(1935)
26271 p.expr(0)
26272 }
26273 {
26274 p.SetState(1936)
26275 p.Match(SQLiteParserPRECEDING_)
26276 if p.HasError() {
26277 // Recognition error - abort rule
26278 goto errorExit
26279 }
26280 }
26281
26282 case 2:
26283 p.EnterOuterAlt(localctx, 2)
26284 {
26285 p.SetState(1938)
26286 p.expr(0)
26287 }
26288 {
26289 p.SetState(1939)
26290 p.Match(SQLiteParserFOLLOWING_)
26291 if p.HasError() {
26292 // Recognition error - abort rule
26293 goto errorExit
26294 }
26295 }
26296
26297 case 3:
26298 p.EnterOuterAlt(localctx, 3)
26299 {
26300 p.SetState(1941)
26301 p.Match(SQLiteParserCURRENT_)
26302 if p.HasError() {
26303 // Recognition error - abort rule
26304 goto errorExit
26305 }
26306 }
26307 {
26308 p.SetState(1942)
26309 p.Match(SQLiteParserROW_)
26310 if p.HasError() {
26311 // Recognition error - abort rule
26312 goto errorExit
26313 }
26314 }

Callers 1

Frame_clauseMethod · 0.95

Calls 4

exprMethod · 0.95
NewFrame_leftContextFunction · 0.85
EnterRuleMethod · 0.45
ExitRuleMethod · 0.45

Tested by

no test coverage detected