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)
76if (_characterWindow != null) 78s_windowPool.Free(_characterWindow); 115return _characterWindow; 183int amountToRead = Math.Min(_text.Length, position + _characterWindow.Length) - position; 187_text.CopyTo(position, _characterWindow, 0, amountToRead); 210Array.Copy(_characterWindow, 212_characterWindow, 221if (_characterWindowCount >= _characterWindow.Length) 224char[] oldWindow = _characterWindow; 225char[] newWindow = new char[_characterWindow.Length * 2]; 232_characterWindow.Length - _characterWindowCount); 234_characterWindow, 346return _characterWindow[_offset]; 370ch = _characterWindow[_offset]; 409return this.Intern(_characterWindow, _lexemeStart, this.Width); 429if (_characterWindow[offset] == ' ') 433if (_characterWindow[offset] == '\n') 440char firstChar = _characterWindow[offset]; 441if (firstChar == '\r' && _characterWindow[offset + 1] == '\n') 445if (firstChar == '/' && _characterWindow[offset + 1] == '/') 452if (_characterWindow[offset] == '/' && _characterWindow[offset + 1] == '/' && _characterWindow[offset + 2] == ' ') 461return this.Intern(_characterWindow, offset, length); 465return new string(_characterWindow, offset, length);