MCPcopy Create free account
hub / github.com/crossoverJie/gscript / String_

Method String_

parser/gscript_parser.go:3941–3976  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3939}
3940
3941func (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.
3979type IProgContext interface {

Callers 3

LiteralMethod · 0.95
VisitLiteralMethod · 0.45
ExitLiteralMethod · 0.45

Calls 3

NewString_ContextFunction · 0.85
EnterRuleMethod · 0.45
ExitRuleMethod · 0.45

Tested by

no test coverage detected