/// <summary> /// Visit a parse tree produced by the <c>UnaryExpression</c> /// labeled alternative in <see cref="GoToParser.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 VisitUnaryExpression([NotNull] GoToParser.UnaryExpressionContext context) { return(VisitChildren(context)); }
public override GoToNode VisitUnaryExpression([NotNull] GoToParser.UnaryExpressionContext context) => // The var's choosen for line & column because's the one maybe needed during sematic analysis new UnaryExpressionInstructionNode(context.var.Text, context.var.Line, context.var.Column);
/// <summary> /// Exit a parse tree produced by the <c>UnaryExpression</c> /// labeled alternative in <see cref="GoToParser.expression"/>. /// <para>The default implementation does nothing.</para> /// </summary> /// <param name="context">The parse tree.</param> public virtual void ExitUnaryExpression([NotNull] GoToParser.UnaryExpressionContext context) { }