protected ClassificationSpan ToClassificationSpan(BlockClassification curSpan, ITextSnapshot snapshot, int start) {
     return new ClassificationSpan(
         new SnapshotSpan(
             snapshot,
             new Span(
                 curSpan.Span.Start + start,
                 curSpan.Span.Length
             )
         ),
         GetClassification(curSpan.Classification)
     );
 }
Exemple #2
0
 protected ClassificationSpan ToClassificationSpan(BlockClassification curSpan, ITextSnapshot snapshot, int start)
 {
     return(new ClassificationSpan(
                new SnapshotSpan(
                    snapshot,
                    new Span(
                        curSpan.Span.Start + start,
                        curSpan.Span.Length
                        )
                    ),
                GetClassification(curSpan.Classification)
                ));
 }