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