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

            return(context.Expression.GetType() == myExpressionType &&
                   context.ExpressionRange.TextRange.StartOffset == startOffset);
        }
Exemple #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);
 }