예제 #1
0
 private void NavigateToSource(Roslyn.Compilers.TextSpan textSpan)
 {
     if (viewmodel.CurrentDocument != null && viewmodel.CurrentDocument.Editor != null)
     {
         viewmodel.CurrentDocument.Editor.SelectText(textSpan.Start, textSpan.Length);
     }
 }
 internal static SnapshotSpan ToSnapshotSpan(this Roslyn.Compilers.TextSpan textSpan, ITextSnapshot snapshot)
 {
     return(new SnapshotSpan(snapshot, new Span(textSpan.Start, textSpan.Length)));
 }