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