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
,
333
return
_characterWindow
[_offset];
357
ch =
_characterWindow
[_offset];
675
return this.Intern(
_characterWindow
, _lexemeStart, this.Width);
695
if (
_characterWindow
[offset] == ' ')
699
if (
_characterWindow
[offset] == '\n')
706
char firstChar =
_characterWindow
[offset];
707
if (firstChar == '\r' &&
_characterWindow
[offset + 1] == '\n')
711
if (firstChar == '/' &&
_characterWindow
[offset + 1] == '/')
718
if (
_characterWindow
[offset] == '/' &&
_characterWindow
[offset + 1] == '/' &&
_characterWindow
[offset + 2] == ' ')
727
return this.Intern(
_characterWindow
, offset, length);
731
return new string(
_characterWindow
, offset, length);