Inheritance: Microsoft.VisualStudio.Package.Source
示例#1
0
 protected TextSpan CreateSpanFor(SourceLocation location, int endPosition, Source source)
 {
     var span = new TextSpan
     {
         iStartLine = location.Line,
         iStartIndex = location.Column,
     };
     if (source != null)
         source.GetLineIndexOfPosition(endPosition, out span.iEndLine, out span.iEndIndex);
     return span;
 }
示例#2
0
 protected TextSpan CreateSpanFor(SourceSpan span, Source source)
 {
     return CreateSpanFor(span.Location, span.EndPosition, source);
 }