public override void ExitIndex_expression([NotNull] TxMarkParser.Index_expressionContext context) { if (context.OPERATOR_OF() != null) { _compileContext.Pop(); } }
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)); } }