()
| 8300 | } |
| 8301 | |
| 8302 | func (p *SqlBaseParser) Sql_string() (localctx ISql_stringContext) { |
| 8303 | localctx = NewSql_stringContext(p, p.GetParserRuleContext(), p.GetState()) |
| 8304 | p.EnterRule(localctx, 56, SqlBaseParserRULE_sql_string) |
| 8305 | |
| 8306 | defer func() { |
| 8307 | p.ExitRule() |
| 8308 | }() |
| 8309 | |
| 8310 | defer func() { |
| 8311 | if err := recover(); err != nil { |
| 8312 | if v, ok := err.(antlr.RecognitionException); ok { |
| 8313 | localctx.SetException(v) |
| 8314 | p.GetErrorHandler().ReportError(p, v) |
| 8315 | p.GetErrorHandler().Recover(p, v) |
| 8316 | } else { |
| 8317 | panic(err) |
| 8318 | } |
| 8319 | } |
| 8320 | }() |
| 8321 | |
| 8322 | p.SetState(603) |
| 8323 | p.GetErrorHandler().Sync(p) |
| 8324 | |
| 8325 | switch p.GetTokenStream().LA(1) { |
| 8326 | case SqlBaseParserSTRING: |
| 8327 | localctx = NewBasicStringLiteralContext(p, localctx) |
| 8328 | p.EnterOuterAlt(localctx, 1) |
| 8329 | { |
| 8330 | p.SetState(597) |
| 8331 | p.Match(SqlBaseParserSTRING) |
| 8332 | } |
| 8333 | |
| 8334 | case SqlBaseParserUNICODE_STRING: |
| 8335 | localctx = NewUnicodeStringLiteralContext(p, localctx) |
| 8336 | p.EnterOuterAlt(localctx, 2) |
| 8337 | { |
| 8338 | p.SetState(598) |
| 8339 | p.Match(SqlBaseParserUNICODE_STRING) |
| 8340 | } |
| 8341 | p.SetState(601) |
| 8342 | p.GetErrorHandler().Sync(p) |
| 8343 | |
| 8344 | if p.GetInterpreter().AdaptivePredict(p.GetTokenStream(), 77, p.GetParserRuleContext()) == 1 { |
| 8345 | { |
| 8346 | p.SetState(599) |
| 8347 | p.Match(SqlBaseParserUESCAPE) |
| 8348 | } |
| 8349 | { |
| 8350 | p.SetState(600) |
| 8351 | p.Match(SqlBaseParserSTRING) |
| 8352 | } |
| 8353 | |
| 8354 | } |
| 8355 | |
| 8356 | default: |
| 8357 | panic(antlr.NewNoViableAltException(p, nil, nil, nil, nil, nil)) |
| 8358 | } |
| 8359 |
no test coverage detected