Esempio n. 1
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)
     );
 }
Esempio n. 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)
                ));
 }