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

Method Frame_single

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

Source from the content-addressed store, hash-verified

26654}
26655
26656func (p *SQLiteParser) Frame_single() (localctx IFrame_singleContext) {
26657 localctx = NewFrame_singleContext(p, p.GetParserRuleContext(), p.GetState())
26658 p.EnterRule(localctx, 146, SQLiteParserRULE_frame_single)
26659 p.SetState(1966)
26660 p.GetErrorHandler().Sync(p)
26661 if p.HasError() {
26662 goto errorExit
26663 }
26664
26665 switch p.GetInterpreter().AdaptivePredict(p.BaseParser, p.GetTokenStream(), 292, p.GetParserRuleContext()) {
26666 case 1:
26667 p.EnterOuterAlt(localctx, 1)
26668 {
26669 p.SetState(1959)
26670 p.expr(0)
26671 }
26672 {
26673 p.SetState(1960)
26674 p.Match(SQLiteParserPRECEDING_)
26675 if p.HasError() {
26676 // Recognition error - abort rule
26677 goto errorExit
26678 }
26679 }
26680
26681 case 2:
26682 p.EnterOuterAlt(localctx, 2)
26683 {
26684 p.SetState(1962)
26685 p.Match(SQLiteParserUNBOUNDED_)
26686 if p.HasError() {
26687 // Recognition error - abort rule
26688 goto errorExit
26689 }
26690 }
26691 {
26692 p.SetState(1963)
26693 p.Match(SQLiteParserPRECEDING_)
26694 if p.HasError() {
26695 // Recognition error - abort rule
26696 goto errorExit
26697 }
26698 }
26699
26700 case 3:
26701 p.EnterOuterAlt(localctx, 3)
26702 {
26703 p.SetState(1964)
26704 p.Match(SQLiteParserCURRENT_)
26705 if p.HasError() {
26706 // Recognition error - abort rule
26707 goto errorExit
26708 }
26709 }
26710 {
26711 p.SetState(1965)
26712 p.Match(SQLiteParserROW_)
26713 if p.HasError() {

Callers 1

Frame_clauseMethod · 0.95

Calls 4

exprMethod · 0.95
NewFrame_singleContextFunction · 0.85
EnterRuleMethod · 0.45
ExitRuleMethod · 0.45

Tested by

no test coverage detected