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

Method Frame_clause

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

Source from the content-addressed store, hash-verified

24279}
24280
24281func (p *SQLiteParser) Frame_clause() (localctx IFrame_clauseContext) {
24282 localctx = NewFrame_clauseContext(p, p.GetParserRuleContext(), p.GetState())
24283 p.EnterRule(localctx, 124, SQLiteParserRULE_frame_clause)
24284 var _la int
24285
24286 p.EnterOuterAlt(localctx, 1)
24287 {
24288 p.SetState(1827)
24289 _la = p.GetTokenStream().LA(1)
24290
24291 if !((int64((_la-130)) & ^0x3f) == 0 && ((int64(1)<<(_la-130))&4503599761588225) != 0) {
24292 p.GetErrorHandler().RecoverInline(p)
24293 } else {
24294 p.GetErrorHandler().ReportMatch(p)
24295 p.Consume()
24296 }
24297 }
24298 p.SetState(1834)
24299 p.GetErrorHandler().Sync(p)
24300 if p.HasError() {
24301 goto errorExit
24302 }
24303
24304 switch p.GetInterpreter().AdaptivePredict(p.BaseParser, p.GetTokenStream(), 272, p.GetParserRuleContext()) {
24305 case 1:
24306 {
24307 p.SetState(1828)
24308 p.Frame_single()
24309 }
24310
24311 case 2:
24312 {
24313 p.SetState(1829)
24314 p.Match(SQLiteParserBETWEEN_)
24315 if p.HasError() {
24316 // Recognition error - abort rule
24317 goto errorExit
24318 }
24319 }
24320 {
24321 p.SetState(1830)
24322 p.Frame_left()
24323 }
24324 {
24325 p.SetState(1831)
24326 p.Match(SQLiteParserAND_)
24327 if p.HasError() {
24328 // Recognition error - abort rule
24329 goto errorExit
24330 }
24331 }
24332 {
24333 p.SetState(1832)
24334 p.Frame_right()
24335 }
24336
24337 case antlr.ATNInvalidAltNumber:
24338 goto errorExit

Callers 2

Frame_specMethod · 0.95
Window_functionMethod · 0.95

Calls 6

Frame_singleMethod · 0.95
Frame_leftMethod · 0.95
Frame_rightMethod · 0.95
NewFrame_clauseContextFunction · 0.85
EnterRuleMethod · 0.45
ExitRuleMethod · 0.45

Tested by

no test coverage detected