public override object VisitFunctionCallAssignment([NotNull] ClepsParser.FunctionCallAssignmentContext context) { BasicClepsType currentType = new BasicClepsType(FullyQualifiedClassName); IValue target = CurrMemberIsStatic? null : CodeGenerator.GetThisInstanceValue(currentType); return(doFunctionCall(context.functionCall(), target, currentType, true /* allowVoidReturn */)); }
public override object VisitFunctionCallAssignment([NotNull] ClepsParser.FunctionCallAssignmentContext context) { if (!ClassManager.IsClassBodySet(FullyQualifiedClassName)) { //This is probably due to some earlier error. Just return something to avoid stalling compilation return(CodeGenerator.CreateByte(0)); } ClepsType currentType = new BasicClepsType(FullyQualifiedClassName); return(doFunctionCall(context.functionCall(), currentType, !CurrMemberIsStatic, false /* allowVoidReturn */)); }
/// <summary> /// Exit a parse tree produced by <see cref="ClepsParser.functionCallAssignment"/>. /// <para>The default implementation does nothing.</para> /// </summary> /// <param name="context">The parse tree.</param> public virtual void ExitFunctionCallAssignment([NotNull] ClepsParser.FunctionCallAssignmentContext context) { }
/// <summary> /// Visit a parse tree produced by <see cref="ClepsParser.functionCallAssignment"/>. /// <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 VisitFunctionCallAssignment([NotNull] ClepsParser.FunctionCallAssignmentContext context) { return(VisitChildren(context)); }