Example #1
0
        public override string ToString()
        {
            if (Span != null)
            {
                TextSpan span = Span.Value;

                return(OriginalExpression
                       .ToString()
                       .Substring(span.Start - OriginalExpression.SpanStart, span.Length));
            }
            else
            {
                return(OriginalExpression.ToString());
            }
        }
Example #2
0
 public override int GetHashCode()
 {
     return(OriginalExpression.GetHashCode() ^ ProcessedExpression.GetHashCode() ^
            FriendlyExpression.GetHashCode() ^ ContainsId.GetHashCode());
 }