1 write to UnderlyingSpan
Microsoft.CodeAnalysis (1)
Text\SubText.cs (1)
34UnderlyingSpan = span;
13 references to UnderlyingSpan
Microsoft.CodeAnalysis (13)
Text\SubText.cs (13)
43public override int Length => UnderlyingSpan.Length; 64return UnderlyingText[UnderlyingSpan.Start + position]; 93int compositeStart = Math.Min(UnderlyingText.Length, UnderlyingSpan.Start + start); 113var startLineInUnderlyingText = _subText.UnderlyingText.Lines.GetLineFromPosition(_subText.UnderlyingSpan.Start); 114var endLineInUnderlyingText = _subText.UnderlyingText.Lines.GetLineFromPosition(_subText.UnderlyingSpan.End); 119var underlyingSpanStart = _subText.UnderlyingSpan.Start; 127var underlyingSpanEnd = _subText.UnderlyingSpan.End; 154return TextLine.FromSpanUnsafe(_subText, new TextSpan(_subText.UnderlyingSpan.End, 0)); 173var startInUnderlyingText = Math.Max(underlyingTextLine.Start, _subText.UnderlyingSpan.Start); 174var endInUnderlyingText = Math.Min(underlyingTextLine.EndIncludingLineBreak, _subText.UnderlyingSpan.End); 178var startInSubText = startInUnderlyingText - _subText.UnderlyingSpan.Start; 205if (position < 0 || position > _subText.UnderlyingSpan.Length) 210var underlyingPosition = position + _subText.UnderlyingSpan.Start;