示例#1
0
 public override void ExitIndex_expression([NotNull] TxMarkParser.Index_expressionContext context)
 {
     if (context.OPERATOR_OF() != null)
     {
         _compileContext.Pop();
     }
 }
示例#2
0
 public override void EnterIndex_expression([NotNull] TxMarkParser.Index_expressionContext context)
 {
     if (context.OPERATOR_OF() != null)
     {
         bool relativeToLast = context.indexOperand()?.OPERATOR_LAST() != null;
         _compileContext.Push(CodeContextTypes.OfExpression, attributes: new Bag <string>().Add <bool>("last", relativeToLast));
     }
 }
 /// <summary>
 /// Exit a parse tree produced by <see cref="TxMarkParser.index_expression"/>.
 /// <para>The default implementation does nothing.</para>
 /// </summary>
 /// <param name="context">The parse tree.</param>
 public virtual void ExitIndex_expression([NotNull] TxMarkParser.Index_expressionContext context)
 {
 }
示例#4
0
 /// <summary>
 /// Visit a parse tree produced by <see cref="TxMarkParser.index_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 VisitIndex_expression([NotNull] TxMarkParser.Index_expressionContext context)
 {
     return(VisitChildren(context));
 }