public MethodCallParameterContext methodCallParameter() { MethodCallParameterContext _localctx = new MethodCallParameterContext(Context, State); EnterRule(_localctx, 6, RULE_methodCallParameter); int _la; try { State = 57; switch (Interpreter.AdaptivePredict(TokenStream, 7, Context)) { case 1: _localctx = new MethodCallParameterValueWithExpressionContext(_localctx); EnterOuterAlt(_localctx, 1); { State = 44; switch (Interpreter.AdaptivePredict(TokenStream, 4, Context)) { case 1: { State = 42; ((MethodCallParameterValueWithExpressionContext)_localctx).ParameterName = Match(ID); State = 43; Match(ASSIGNMENT_OPERATOR); } break; } State = 46; ((MethodCallParameterValueWithExpressionContext)_localctx).ActualParameterValue = expression(); } break; case 2: _localctx = new MethodCallParameterValueWithConstantContext(_localctx); EnterOuterAlt(_localctx, 2); { State = 49; _la = TokenStream.La(1); if (_la == ID) { { State = 47; ((MethodCallParameterValueWithConstantContext)_localctx).ParameterName = Match(ID); State = 48; Match(ASSIGNMENT_OPERATOR); } } State = 51; ((MethodCallParameterValueWithConstantContext)_localctx).ActualParameterValue = constant(); } break; case 3: _localctx = new MethodCallParameterValueWithIdentifierContext(_localctx); EnterOuterAlt(_localctx, 3); { State = 54; switch (Interpreter.AdaptivePredict(TokenStream, 6, Context)) { case 1: { State = 52; ((MethodCallParameterValueWithIdentifierContext)_localctx).ParameterName = Match(ID); State = 53; Match(ASSIGNMENT_OPERATOR); } break; } State = 56; ((MethodCallParameterValueWithIdentifierContext)_localctx).ActualParameterValue = Match(ID); } break; } } catch (RecognitionException re) { _localctx.exception = re; ErrorHandler.ReportError(this, re); ErrorHandler.Recover(this, re); } finally { ExitRule(); } return(_localctx); }
public MethodCallParameterValueWithConstantContext(MethodCallParameterContext context) { CopyFrom(context); }
public MethodCallParameterValueWithIdentifierContext(MethodCallParameterContext context) { CopyFrom(context); }
public MethodCallParameterValueWithExpressionContext(MethodCallParameterContext context) { CopyFrom(context); }
public virtual void CopyFrom(MethodCallParameterContext context) { base.CopyFrom(context); }