public override Yarn.IType VisitExpValue(YarnSpinnerParser.ExpValueContext context) { // Value expressions have the type of their inner value Yarn.IType type = Visit(context.value()); context.Type = type; return(type); }
public override Yarn.IType VisitExpValue(YarnSpinnerParser.ExpValueContext context) { // passing the hint from the expression down into the values within context.value().Hint = context.Hint; // Value expressions have the type of their inner value Yarn.IType type = Visit(context.value()); context.Type = type; return(type); }
// variable public override int VisitExpValue(YarnSpinnerParser.ExpValueContext context) { return(Visit(context.value())); }
/// <summary> /// Visit a parse tree produced by the <c>expValue</c> /// labeled alternative in <see cref="YarnSpinnerParser.expression"/>. /// <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 VisitExpValue([NotNull] YarnSpinnerParser.ExpValueContext context) { return(VisitChildren(context)); }
/// <summary> /// Exit a parse tree produced by the <c>expValue</c> /// labeled alternative in <see cref="YarnSpinnerParser.expression"/>. /// <para>The default implementation does nothing.</para> /// </summary> /// <param name="context">The parse tree.</param> public virtual void ExitExpValue([NotNull] YarnSpinnerParser.ExpValueContext context) { }