()
| 27020 | } |
| 27021 | |
| 27022 | func (p *SQLiteParser) Window_function() (localctx IWindow_functionContext) { |
| 27023 | localctx = NewWindow_functionContext(p, p.GetParserRuleContext(), p.GetState()) |
| 27024 | p.EnterRule(localctx, 148, SQLiteParserRULE_window_function) |
| 27025 | var _la int |
| 27026 | |
| 27027 | p.SetState(2053) |
| 27028 | p.GetErrorHandler().Sync(p) |
| 27029 | if p.HasError() { |
| 27030 | goto errorExit |
| 27031 | } |
| 27032 | |
| 27033 | switch p.GetTokenStream().LA(1) { |
| 27034 | case SQLiteParserFIRST_VALUE_, SQLiteParserLAST_VALUE_: |
| 27035 | p.EnterOuterAlt(localctx, 1) |
| 27036 | { |
| 27037 | p.SetState(1968) |
| 27038 | _la = p.GetTokenStream().LA(1) |
| 27039 | |
| 27040 | if !(_la == SQLiteParserFIRST_VALUE_ || _la == SQLiteParserLAST_VALUE_) { |
| 27041 | p.GetErrorHandler().RecoverInline(p) |
| 27042 | } else { |
| 27043 | p.GetErrorHandler().ReportMatch(p) |
| 27044 | p.Consume() |
| 27045 | } |
| 27046 | } |
| 27047 | { |
| 27048 | p.SetState(1969) |
| 27049 | p.Match(SQLiteParserOPEN_PAR) |
| 27050 | if p.HasError() { |
| 27051 | // Recognition error - abort rule |
| 27052 | goto errorExit |
| 27053 | } |
| 27054 | } |
| 27055 | { |
| 27056 | p.SetState(1970) |
| 27057 | p.expr(0) |
| 27058 | } |
| 27059 | { |
| 27060 | p.SetState(1971) |
| 27061 | p.Match(SQLiteParserCLOSE_PAR) |
| 27062 | if p.HasError() { |
| 27063 | // Recognition error - abort rule |
| 27064 | goto errorExit |
| 27065 | } |
| 27066 | } |
| 27067 | { |
| 27068 | p.SetState(1972) |
| 27069 | p.Match(SQLiteParserOVER_) |
| 27070 | if p.HasError() { |
| 27071 | // Recognition error - abort rule |
| 27072 | goto errorExit |
| 27073 | } |
| 27074 | } |
| 27075 | { |
| 27076 | p.SetState(1973) |
| 27077 | p.Match(SQLiteParserOPEN_PAR) |
| 27078 | if p.HasError() { |
| 27079 | // Recognition error - abort rule |
no test coverage detected