예제 #1
0
        protected override bool TryCreateTagSpan(SnapshotSpan span, RenameSpanKind type, out TagSpan <ITextMarkerTag> tagSpan)
        {
            ITextMarkerTag tagKind;

            switch (type)
            {
            case RenameSpanKind.Reference:
                tagKind = ValidTag.Instance;
                break;

            case RenameSpanKind.UnresolvedConflict:
                tagKind = ConflictTag.Instance;
                break;

            case RenameSpanKind.Complexified:
                tagKind = FixupTag.Instance;
                break;

            default:
                throw ExceptionUtilities.UnexpectedValue(type);
            }

            tagSpan = new TagSpan <ITextMarkerTag>(span, tagKind);
            return(true);
        }
예제 #2
0
        protected override bool TryCreateTagSpan(SnapshotSpan span, RenameSpanKind type, out TagSpan <IClassificationTag> tagSpan)
        {
            if (type == RenameSpanKind.Reference)
            {
                tagSpan = new TagSpan <IClassificationTag>(span, new ClassificationTag(_classificationType));
                return(true);
            }

            tagSpan = null;
            return(false);
        }
예제 #3
0
 public RenameTrackingSpan(ITrackingSpan trackingSpan, RenameSpanKind type)
 {
     this.TrackingSpan = trackingSpan;
     this.Type         = type;
 }
예제 #4
0
 public RenameTrackingSpan(ITrackingSpan trackingSpan, RenameSpanKind type)
 {
     this.TrackingSpan = trackingSpan;
     this.Type = type;
 }
예제 #5
0
 protected abstract bool TryCreateTagSpan(SnapshotSpan span, RenameSpanKind type, out TagSpan <T> tagSpan);