public override void EnterOperand([NotNull] TxMarkParser.OperandContext context)
 {
     if (context.OPEN_PARENTHESIS() != null)
     {
         _compileContext.Push(CodeContextTypes.ParenthesizedExpression);
     }
     else
     {
         _compileContext.Push(CodeContextTypes.Expression);
     }
 }
 /// <summary>
 /// Exit a parse tree produced by <see cref="TxMarkParser.operand"/>.
 /// <para>The default implementation does nothing.</para>
 /// </summary>
 /// <param name="context">The parse tree.</param>
 public virtual void ExitOperand([NotNull] TxMarkParser.OperandContext context)
 {
 }
Exemple #3
0
 /// <summary>
 /// Visit a parse tree produced by <see cref="TxMarkParser.operand"/>.
 /// <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 VisitOperand([NotNull] TxMarkParser.OperandContext context)
 {
     return(VisitChildren(context));
 }
 public override void ExitOperand([NotNull] TxMarkParser.OperandContext context)
 {
     _compileContext.Pop();
 }