示例#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)
     );
 }
示例#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)
                ));
 }