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

Method ParExpression

parser/gscript_parser.go:5792–5827  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5790}
5791
5792func (p *GScriptParser) ParExpression() (localctx IParExpressionContext) {
5793 localctx = NewParExpressionContext(p, p.GetParserRuleContext(), p.GetState())
5794 p.EnterRule(localctx, 62, GScriptParserRULE_parExpression)
5795
5796 defer func() {
5797 p.ExitRule()
5798 }()
5799
5800 defer func() {
5801 if err := recover(); err != nil {
5802 if v, ok := err.(antlr.RecognitionException); ok {
5803 localctx.SetException(v)
5804 p.GetErrorHandler().ReportError(p, v)
5805 p.GetErrorHandler().Recover(p, v)
5806 } else {
5807 panic(err)
5808 }
5809 }
5810 }()
5811
5812 p.EnterOuterAlt(localctx, 1)
5813 {
5814 p.SetState(350)
5815 p.Match(GScriptParserLPAREN)
5816 }
5817 {
5818 p.SetState(351)
5819 p.expr(0)
5820 }
5821 {
5822 p.SetState(352)
5823 p.Match(GScriptParserRPAREN)
5824 }
5825
5826 return localctx
5827}
5828
5829// IExpressionListContext is an interface to support dynamic dispatch.
5830type IExpressionListContext interface {

Callers 3

StatementMethod · 0.95
VisitStmIfElseMethod · 0.45
VisitStmWhileMethod · 0.45

Calls 4

exprMethod · 0.95
NewParExpressionContextFunction · 0.85
EnterRuleMethod · 0.45
ExitRuleMethod · 0.45

Tested by

no test coverage detected