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

Method Prog

parser/gscript_parser.go:4056–4083  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4054}
4055
4056func (p *GScriptParser) Prog() (localctx IProgContext) {
4057 localctx = NewProgContext(p, p.GetParserRuleContext(), p.GetState())
4058 p.EnterRule(localctx, 48, GScriptParserRULE_prog)
4059
4060 defer func() {
4061 p.ExitRule()
4062 }()
4063
4064 defer func() {
4065 if err := recover(); err != nil {
4066 if v, ok := err.(antlr.RecognitionException); ok {
4067 localctx.SetException(v)
4068 p.GetErrorHandler().ReportError(p, v)
4069 p.GetErrorHandler().Recover(p, v)
4070 } else {
4071 panic(err)
4072 }
4073 }
4074 }()
4075
4076 p.EnterOuterAlt(localctx, 1)
4077 {
4078 p.SetState(277)
4079 p.BlockStatements()
4080 }
4081
4082 return localctx
4083}
4084
4085// IBlockContext is an interface to support dynamic dispatch.
4086type IBlockContext interface {

Callers 3

GetCompileInfoMethod · 0.95
compileMethod · 0.95
ArithmeticOperatorsFunction · 0.80

Calls 4

BlockStatementsMethod · 0.95
NewProgContextFunction · 0.85
EnterRuleMethod · 0.45
ExitRuleMethod · 0.45

Tested by

no test coverage detected