1 write to _subText
Microsoft.CodeAnalysis (1)
Text\SubText.cs (1)
111
_subText
= subText;
20 references to _subText
Microsoft.CodeAnalysis (20)
Text\SubText.cs (20)
113
var startLineInUnderlyingText =
_subText
.UnderlyingText.Lines.GetLineFromPosition(
_subText
.UnderlyingSpan.Start);
114
var endLineInUnderlyingText =
_subText
.UnderlyingText.Lines.GetLineFromPosition(
_subText
.UnderlyingSpan.End);
119
var underlyingSpanStart =
_subText
.UnderlyingSpan.Start;
123
Debug.Assert(
_subText
.UnderlyingText[underlyingSpanStart - 1] == '\r' &&
_subText
.UnderlyingText[underlyingSpanStart] == '\n');
127
var underlyingSpanEnd =
_subText
.UnderlyingSpan.End;
131
Debug.Assert(
_subText
.UnderlyingText[underlyingSpanEnd - 1] == '\r' &&
_subText
.UnderlyingText[underlyingSpanEnd] == '\n');
154
return TextLine.FromSpanUnsafe(
_subText
, new TextSpan(
_subText
.UnderlyingSpan.End, 0));
157
var underlyingTextLine =
_subText
.UnderlyingText.Lines[lineNumber + _startLineNumberInUnderlyingText];
173
var startInUnderlyingText = Math.Max(underlyingTextLine.Start,
_subText
.UnderlyingSpan.Start);
174
var endInUnderlyingText = Math.Min(underlyingTextLine.EndIncludingLineBreak,
_subText
.UnderlyingSpan.End);
178
var startInSubText = startInUnderlyingText -
_subText
.UnderlyingSpan.Start;
181
var resultLine = TextLine.FromSpanUnsafe(
_subText
, new TextSpan(startInSubText, length));
205
if (position < 0 || position >
_subText
.UnderlyingSpan.Length)
210
var underlyingPosition = position +
_subText
.UnderlyingSpan.Start;
211
var underlyingLineNumber =
_subText
.UnderlyingText.Lines.IndexOf(underlyingPosition);