()
| 6064 | } |
| 6065 | |
| 6066 | func (p *GScriptParser) FunctionCall() (localctx IFunctionCallContext) { |
| 6067 | localctx = NewFunctionCallContext(p, p.GetParserRuleContext(), p.GetState()) |
| 6068 | p.EnterRule(localctx, 66, GScriptParserRULE_functionCall) |
| 6069 | var _la int |
| 6070 | |
| 6071 | defer func() { |
| 6072 | p.ExitRule() |
| 6073 | }() |
| 6074 | |
| 6075 | defer func() { |
| 6076 | if err := recover(); err != nil { |
| 6077 | if v, ok := err.(antlr.RecognitionException); ok { |
| 6078 | localctx.SetException(v) |
| 6079 | p.GetErrorHandler().ReportError(p, v) |
| 6080 | p.GetErrorHandler().Recover(p, v) |
| 6081 | } else { |
| 6082 | panic(err) |
| 6083 | } |
| 6084 | } |
| 6085 | }() |
| 6086 | |
| 6087 | p.SetState(380) |
| 6088 | p.GetErrorHandler().Sync(p) |
| 6089 | |
| 6090 | switch p.GetTokenStream().LA(1) { |
| 6091 | case GScriptParserIDENTIFIER: |
| 6092 | p.EnterOuterAlt(localctx, 1) |
| 6093 | { |
| 6094 | p.SetState(362) |
| 6095 | p.Match(GScriptParserIDENTIFIER) |
| 6096 | } |
| 6097 | { |
| 6098 | p.SetState(363) |
| 6099 | p.Match(GScriptParserLPAREN) |
| 6100 | } |
| 6101 | p.SetState(365) |
| 6102 | p.GetErrorHandler().Sync(p) |
| 6103 | _la = p.GetTokenStream().LA(1) |
| 6104 | |
| 6105 | if (((_la)&-(0x1f+1)) == 0 && ((1<<uint(_la))&((1<<GScriptParserSUPER)|(1<<GScriptParserTHIS)|(1<<GScriptParserNil)|(1<<GScriptParserLPAREN)|(1<<GScriptParserBANG)|(1<<GScriptParserTILDE))) != 0) || (((_la-37)&-(0x1f+1)) == 0 && ((1<<uint((_la-37)))&((1<<(GScriptParserPLUS-37))|(1<<(GScriptParserSUB-37))|(1<<(GScriptParserBOOL_LITERAL-37))|(1<<(GScriptParserSTRING_LITERAL-37))|(1<<(GScriptParserRAW_STRING_LIT-37))|(1<<(GScriptParserNULL_LITERAL-37))|(1<<(GScriptParserDECIMAL_LITERAL-37))|(1<<(GScriptParserFLOAT_LITERAL-37))|(1<<(GScriptParserIDENTIFIER-37)))) != 0) { |
| 6106 | { |
| 6107 | p.SetState(364) |
| 6108 | p.ExpressionList() |
| 6109 | } |
| 6110 | |
| 6111 | } |
| 6112 | { |
| 6113 | p.SetState(367) |
| 6114 | p.Match(GScriptParserRPAREN) |
| 6115 | } |
| 6116 | |
| 6117 | case GScriptParserTHIS: |
| 6118 | p.EnterOuterAlt(localctx, 2) |
| 6119 | { |
| 6120 | p.SetState(368) |
| 6121 | p.Match(GScriptParserTHIS) |
| 6122 | } |
| 6123 | { |
no test coverage detected