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