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

Method Window_defn

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

Source from the content-addressed store, hash-verified

23303}
23304
23305func (p *SQLiteParser) Window_defn() (localctx IWindow_defnContext) {
23306 localctx = NewWindow_defnContext(p, p.GetParserRuleContext(), p.GetState())
23307 p.EnterRule(localctx, 118, SQLiteParserRULE_window_defn)
23308 var _la int
23309
23310 p.EnterOuterAlt(localctx, 1)
23311 {
23312 p.SetState(1750)
23313 p.Match(SQLiteParserOPEN_PAR)
23314 if p.HasError() {
23315 // Recognition error - abort rule
23316 goto errorExit
23317 }
23318 }
23319 p.SetState(1752)
23320 p.GetErrorHandler().Sync(p)
23321
23322 if p.GetInterpreter().AdaptivePredict(p.BaseParser, p.GetTokenStream(), 259, p.GetParserRuleContext()) == 1 {
23323 {
23324 p.SetState(1751)
23325 p.Base_window_name()
23326 }
23327
23328 } else if p.HasError() { // JIM
23329 goto errorExit
23330 }
23331 p.SetState(1764)
23332 p.GetErrorHandler().Sync(p)
23333 if p.HasError() {
23334 goto errorExit
23335 }
23336 _la = p.GetTokenStream().LA(1)
23337
23338 if _la == SQLiteParserPARTITION_ {
23339 {
23340 p.SetState(1754)
23341 p.Match(SQLiteParserPARTITION_)
23342 if p.HasError() {
23343 // Recognition error - abort rule
23344 goto errorExit
23345 }
23346 }
23347 {
23348 p.SetState(1755)
23349 p.Match(SQLiteParserBY_)
23350 if p.HasError() {
23351 // Recognition error - abort rule
23352 goto errorExit
23353 }
23354 }
23355 {
23356 p.SetState(1756)
23357 p.expr(0)
23358 }
23359 p.SetState(1761)
23360 p.GetErrorHandler().Sync(p)
23361 if p.HasError() {
23362 goto errorExit

Callers 2

Select_coreMethod · 0.95

Calls 7

Base_window_nameMethod · 0.95
exprMethod · 0.95
Ordering_termMethod · 0.95
Frame_specMethod · 0.95
NewWindow_defnContextFunction · 0.85
EnterRuleMethod · 0.45
ExitRuleMethod · 0.45

Tested by

no test coverage detected