Ejemplo n.º 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);
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 3
0
 public RenameTrackingSpan(ITrackingSpan trackingSpan, RenameSpanKind type)
 {
     this.TrackingSpan = trackingSpan;
     this.Type         = type;
 }
Ejemplo n.º 4
0
 public RenameTrackingSpan(ITrackingSpan trackingSpan, RenameSpanKind type)
 {
     this.TrackingSpan = trackingSpan;
     this.Type = type;
 }
Ejemplo n.º 5
0
 protected abstract bool TryCreateTagSpan(SnapshotSpan span, RenameSpanKind type, out TagSpan <T> tagSpan);