public override object VisitFunctionCallOnExpression([NotNull] ClepsParser.FunctionCallOnExpressionContext context) { IValue expressionValue = Visit(context.rightHandExpression()) as IValue; bool isMembersAccessible = !expressionValue.ExpressionType.IsStaticType; return(doFunctionCall(context.functionCall(), expressionValue.ExpressionType, isMembersAccessible, false /* allowVoidReturn */)); }
/// <summary> /// Exit a parse tree produced by <see cref="ClepsParser.FunctionCallOnExpression"/>. /// <para>The default implementation does nothing.</para> /// </summary> /// <param name="context">The parse tree.</param> public virtual void ExitFunctionCallOnExpression([NotNull] ClepsParser.FunctionCallOnExpressionContext context) { }
/// <summary> /// Visit a parse tree produced by <see cref="ClepsParser.FunctionCallOnExpression"/>. /// <para> /// The default implementation returns the result of calling <see cref="AbstractParseTreeVisitor{Result}.VisitChildren(IRuleNode)"/> /// on <paramref name="context"/>. /// </para> /// </summary> /// <param name="context">The parse tree.</param> /// <return>The visitor result.</return> public virtual Result VisitFunctionCallOnExpression([NotNull] ClepsParser.FunctionCallOnExpressionContext context) { return(VisitChildren(context)); }
public override object VisitFunctionCallOnExpression([NotNull] ClepsParser.FunctionCallOnExpressionContext context) { IValue target = Visit(context.rightHandExpression()) as IValue; return(doFunctionCall(context.functionCall(), target, target.ExpressionType, false /* allowVoidReturn */)); }