1 write to UnderlyingText
Microsoft.CodeAnalysis (1)
Text\SubText.cs (1)
33
UnderlyingText
= text;
18 references to UnderlyingText
Microsoft.CodeAnalysis (18)
Text\SubText.cs (18)
37
public override Encoding? Encoding =>
UnderlyingText
.Encoding;
47
get { return this.
UnderlyingText
.StorageSize; }
52
get { return this.
UnderlyingText
.StorageKey; }
64
return
UnderlyingText
[UnderlyingSpan.Start + position];
75
return
UnderlyingText
.ToString(GetCompositeSpan(span.Start, span.Length));
82
return new SubText(
UnderlyingText
, GetCompositeSpan(span.Start, span.Length));
88
UnderlyingText
.CopyTo(span.Start, destination, destinationIndex, span.Length);
93
int compositeStart = Math.Min(
UnderlyingText
.Length, UnderlyingSpan.Start + start);
94
int compositeEnd = Math.Min(
UnderlyingText
.Length, compositeStart + length);
99
/// Delegates to the SubText's <see cref="
UnderlyingText
"/> to determine line information.
113
var startLineInUnderlyingText = _subText.
UnderlyingText
.Lines.GetLineFromPosition(_subText.UnderlyingSpan.Start);
114
var endLineInUnderlyingText = _subText.
UnderlyingText
.Lines.GetLineFromPosition(_subText.UnderlyingSpan.End);
123
Debug.Assert(_subText.
UnderlyingText
[underlyingSpanStart - 1] == '\r' && _subText.
UnderlyingText
[underlyingSpanStart] == '\n');
131
Debug.Assert(_subText.
UnderlyingText
[underlyingSpanEnd - 1] == '\r' && _subText.
UnderlyingText
[underlyingSpanEnd] == '\n');
157
var underlyingTextLine = _subText.
UnderlyingText
.Lines[lineNumber + _startLineNumberInUnderlyingText];
211
var underlyingLineNumber = _subText.
UnderlyingText
.Lines.IndexOf(underlyingPosition);