()
| 10117 | } |
| 10118 | |
| 10119 | func (p *SqlBaseParser) WhenClause() (localctx IWhenClauseContext) { |
| 10120 | localctx = NewWhenClauseContext(p, p.GetParserRuleContext(), p.GetState()) |
| 10121 | p.EnterRule(localctx, 78, SqlBaseParserRULE_whenClause) |
| 10122 | |
| 10123 | defer func() { |
| 10124 | p.ExitRule() |
| 10125 | }() |
| 10126 | |
| 10127 | defer func() { |
| 10128 | if err := recover(); err != nil { |
| 10129 | if v, ok := err.(antlr.RecognitionException); ok { |
| 10130 | localctx.SetException(v) |
| 10131 | p.GetErrorHandler().ReportError(p, v) |
| 10132 | p.GetErrorHandler().Recover(p, v) |
| 10133 | } else { |
| 10134 | panic(err) |
| 10135 | } |
| 10136 | } |
| 10137 | }() |
| 10138 | |
| 10139 | p.EnterOuterAlt(localctx, 1) |
| 10140 | { |
| 10141 | p.SetState(699) |
| 10142 | p.Match(SqlBaseParserWHEN) |
| 10143 | } |
| 10144 | { |
| 10145 | p.SetState(700) |
| 10146 | |
| 10147 | var _x = p.Expression() |
| 10148 | |
| 10149 | localctx.(*WhenClauseContext).condition = _x |
| 10150 | } |
| 10151 | { |
| 10152 | p.SetState(701) |
| 10153 | p.Match(SqlBaseParserTHEN) |
| 10154 | } |
| 10155 | { |
| 10156 | p.SetState(702) |
| 10157 | |
| 10158 | var _x = p.Expression() |
| 10159 | |
| 10160 | localctx.(*WhenClauseContext).result = _x |
| 10161 | } |
| 10162 | |
| 10163 | return localctx |
| 10164 | } |
| 10165 | |
| 10166 | // IFilterContext is an interface to support dynamic dispatch. |
| 10167 | type IFilterContext interface { |
nothing calls this directly
no test coverage detected