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

Method Frame_right

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

Source from the content-addressed store, hash-verified

26457}
26458
26459func (p *SQLiteParser) Frame_right() (localctx IFrame_rightContext) {
26460 localctx = NewFrame_rightContext(p, p.GetParserRuleContext(), p.GetState())
26461 p.EnterRule(localctx, 144, SQLiteParserRULE_frame_right)
26462 p.SetState(1957)
26463 p.GetErrorHandler().Sync(p)
26464 if p.HasError() {
26465 goto errorExit
26466 }
26467
26468 switch p.GetInterpreter().AdaptivePredict(p.BaseParser, p.GetTokenStream(), 291, p.GetParserRuleContext()) {
26469 case 1:
26470 p.EnterOuterAlt(localctx, 1)
26471 {
26472 p.SetState(1947)
26473 p.expr(0)
26474 }
26475 {
26476 p.SetState(1948)
26477 p.Match(SQLiteParserPRECEDING_)
26478 if p.HasError() {
26479 // Recognition error - abort rule
26480 goto errorExit
26481 }
26482 }
26483
26484 case 2:
26485 p.EnterOuterAlt(localctx, 2)
26486 {
26487 p.SetState(1950)
26488 p.expr(0)
26489 }
26490 {
26491 p.SetState(1951)
26492 p.Match(SQLiteParserFOLLOWING_)
26493 if p.HasError() {
26494 // Recognition error - abort rule
26495 goto errorExit
26496 }
26497 }
26498
26499 case 3:
26500 p.EnterOuterAlt(localctx, 3)
26501 {
26502 p.SetState(1953)
26503 p.Match(SQLiteParserCURRENT_)
26504 if p.HasError() {
26505 // Recognition error - abort rule
26506 goto errorExit
26507 }
26508 }
26509 {
26510 p.SetState(1954)
26511 p.Match(SQLiteParserROW_)
26512 if p.HasError() {
26513 // Recognition error - abort rule
26514 goto errorExit
26515 }
26516 }

Callers 1

Frame_clauseMethod · 0.95

Calls 4

exprMethod · 0.95
NewFrame_rightContextFunction · 0.85
EnterRuleMethod · 0.45
ExitRuleMethod · 0.45

Tested by

no test coverage detected