()
| 3939 | } |
| 3940 | |
| 3941 | func (p *GScriptParser) String_() (localctx IString_Context) { |
| 3942 | localctx = NewString_Context(p, p.GetParserRuleContext(), p.GetState()) |
| 3943 | p.EnterRule(localctx, 46, GScriptParserRULE_string_) |
| 3944 | var _la int |
| 3945 | |
| 3946 | defer func() { |
| 3947 | p.ExitRule() |
| 3948 | }() |
| 3949 | |
| 3950 | defer func() { |
| 3951 | if err := recover(); err != nil { |
| 3952 | if v, ok := err.(antlr.RecognitionException); ok { |
| 3953 | localctx.SetException(v) |
| 3954 | p.GetErrorHandler().ReportError(p, v) |
| 3955 | p.GetErrorHandler().Recover(p, v) |
| 3956 | } else { |
| 3957 | panic(err) |
| 3958 | } |
| 3959 | } |
| 3960 | }() |
| 3961 | |
| 3962 | p.EnterOuterAlt(localctx, 1) |
| 3963 | { |
| 3964 | p.SetState(275) |
| 3965 | _la = p.GetTokenStream().LA(1) |
| 3966 | |
| 3967 | if !(_la == GScriptParserSTRING_LITERAL || _la == GScriptParserRAW_STRING_LIT) { |
| 3968 | p.GetErrorHandler().RecoverInline(p) |
| 3969 | } else { |
| 3970 | p.GetErrorHandler().ReportMatch(p) |
| 3971 | p.Consume() |
| 3972 | } |
| 3973 | } |
| 3974 | |
| 3975 | return localctx |
| 3976 | } |
| 3977 | |
| 3978 | // IProgContext is an interface to support dynamic dispatch. |
| 3979 | type IProgContext interface { |
no test coverage detected