1 write to Text
Microsoft.CodeAnalysis.CSharp (1)
Parser\SlidingTextWindow.cs (1)
107
this.
Text
= text;
21 references to Text
Microsoft.CodeAnalysis.CSharp (21)
Parser\LanguageParser.cs (1)
229
builder.Add(SyntaxFactory.BadToken(null, lexer.TextWindow.
Text
.ToString(), null));
Parser\Lexer.cs (4)
734
int end = TextWindow.
Text
.Length;
735
info.Text = TextWindow.
Text
.ToString(TextSpan.FromBounds(startingPosition, end));
2006
var text = TextWindow.
Text
.GetSubText(TextSpan.FromBounds(savePosition, TextWindow.Position));
2081
var text = TextWindow.
Text
;
Parser\SlidingTextWindow.cs (15)
71
/// Absolute end position of <see cref="
Text
"/>. Attempts to read at or past this position will
77
/// The current position in <see cref="
Text
"/> that we are reading characters from. This is the absolute
95
/// the chunk <c>[_characterWindowStartPositionInText, CharacterWindowEndPositionInText)</c> in <see cref="
Text
"/>.
128
/// Reads a chunk of characters from the underlying <see cref="
Text
"/> at the given position and places them
140
this.
Text
.CopyTo(position, _characterWindow.Array!, 0, amountToRead);
153
/// <see cref="
Text
"/> that are available after that. This span may be empty.
169
/// that <see cref="_characterWindow"/> encompases in <see cref="
Text
"/>. This is equal to <see cref="_characterWindowStartPositionInText"/>
176
/// can be read from the character window without going back to the underlying <see cref="
Text
"/>.
186
/// that span can be read can be read from the character window without going back to the underlying <see cref="
Text
"/>.
195
/// Returns the span of characters corresponding to <paramref name="span"/> from <see cref="
Text
"/> <em>if</em>
390
/// Gets the text, in the range <c>[startPosition, this.Position)</c> from <see cref="
Text
"/>.
392
/// chunk, or from the underlying <see cref="
Text
"/> if it is not.
398
/// Gets the text, in the range <c>[position, position + length)</c> from <see cref="
Text
"/>.
400
/// chunk, or from the underlying <see cref="
Text
"/> if it is not.
418
return this.
Text
.ToString(span);
Parser\SyntaxParser.cs (1)
141
var size = Math.Min(CachedTokenArraySize, this.lexer.TextWindow.
Text
.Length / 2);