예제 #1
0
        public bool MatchesByRangeAndType([NotNull] PostfixExpressionContext context)
        {
            var startOffset = myExpressionRange.TextRange.StartOffset;

            return(context.Expression.GetType() == myExpressionType &&
                   context.ExpressionRange.TextRange.StartOffset == startOffset);
        }
예제 #2
0
 public PostfixExpressionContextImage([NotNull] PostfixExpressionContext context)
 {
     myExpressionType  = context.Expression.GetType();
     myExpressionRange = context.ExpressionRange;
     myExpressionIndex = context.PostfixContext.AllExpressions.IndexOf(context);
 }
 public virtual PostfixExpressionContext FixExpression([NotNull] PostfixExpressionContext context)
 {
     return(context);
 }