public override int VisitCall_statement(YarnSpinnerParser.Call_statementContext context) { // Visit our function call, which will invoke the function this.Visit(context.function_call()); // TODO: if this function returns a value, it will be pushed onto // the stack, but there's no way for the compiler to know that, so // the stack will not be tidied up. is there a way for that to work? return(0); }
/// <summary> /// Visit a parse tree produced by <see cref="YarnSpinnerParser.call_statement"/>. /// <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 VisitCall_statement([NotNull] YarnSpinnerParser.Call_statementContext context) { return(VisitChildren(context)); }
/// <summary> /// Exit a parse tree produced by <see cref="YarnSpinnerParser.call_statement"/>. /// <para>The default implementation does nothing.</para> /// </summary> /// <param name="context">The parse tree.</param> public virtual void ExitCall_statement([NotNull] YarnSpinnerParser.Call_statementContext context) { }