1 write to UnderlyingSpan
Microsoft.CodeAnalysis (1)
Text\SubText.cs (1)
34
UnderlyingSpan
= span;
13 references to UnderlyingSpan
Microsoft.CodeAnalysis (13)
Text\SubText.cs (13)
43
public override int Length =>
UnderlyingSpan
.Length;
64
return UnderlyingText[
UnderlyingSpan
.Start + position];
93
int compositeStart = Math.Min(UnderlyingText.Length,
UnderlyingSpan
.Start + start);
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;
127
var underlyingSpanEnd = _subText.
UnderlyingSpan
.End;
154
return TextLine.FromSpanUnsafe(_subText, new TextSpan(_subText.
UnderlyingSpan
.End, 0));
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;
205
if (position < 0 || position > _subText.
UnderlyingSpan
.Length)
210
var underlyingPosition = position + _subText.
UnderlyingSpan
.Start;