3 writes to _characterWindow
Microsoft.CodeAnalysis.CSharp (3)
Parser\SlidingTextWindow.cs (3)
70
_characterWindow
= s_windowPool.Allocate();
79
_characterWindow
= null!;
228
_characterWindow
= newWindow;
25 references to _characterWindow
Microsoft.CodeAnalysis.CSharp (25)
Parser\SlidingTextWindow.cs (25)
76
if (
_characterWindow
!= null)
78
s_windowPool.Free(
_characterWindow
);
115
return
_characterWindow
;
183
int amountToRead = Math.Min(_text.Length, position +
_characterWindow
.Length) - position;
187
_text.CopyTo(position,
_characterWindow
, 0, amountToRead);
210
Array.Copy(
_characterWindow
,
212
_characterWindow
,
221
if (_characterWindowCount >=
_characterWindow
.Length)
224
char[] oldWindow =
_characterWindow
;
225
char[] newWindow = new char[
_characterWindow
.Length * 2];
232
_characterWindow
.Length - _characterWindowCount);
234
_characterWindow
,
346
return
_characterWindow
[_offset];
370
ch =
_characterWindow
[_offset];
409
return this.Intern(
_characterWindow
, _lexemeStart, this.Width);
429
if (
_characterWindow
[offset] == ' ')
433
if (
_characterWindow
[offset] == '\n')
440
char firstChar =
_characterWindow
[offset];
441
if (firstChar == '\r' &&
_characterWindow
[offset + 1] == '\n')
445
if (firstChar == '/' &&
_characterWindow
[offset + 1] == '/')
452
if (
_characterWindow
[offset] == '/' &&
_characterWindow
[offset + 1] == '/' &&
_characterWindow
[offset + 2] == ' ')
461
return this.Intern(
_characterWindow
, offset, length);
465
return new string(
_characterWindow
, offset, length);