4 writes to _characterWindow
Microsoft.CodeAnalysis.CSharp (4)
25 references to _characterWindow
Microsoft.CodeAnalysis.CSharp (25)
Parser\SlidingTextWindow.cs (25)
72if (_characterWindow != null)
74s_windowPool.Free(_characterWindow);
111return _characterWindow;
179int amountToRead = Math.Min(_text.Length, position + _characterWindow.Length) - position;
183_text.CopyTo(position, _characterWindow, 0, amountToRead);
206Array.Copy(_characterWindow,
208_characterWindow,
217if (_characterWindowCount >= _characterWindow.Length)
220char[] oldWindow = _characterWindow;
221char[] newWindow = new char[_characterWindow.Length * 2];
228_characterWindow.Length - _characterWindowCount);
230_characterWindow,
342return _characterWindow[_offset];
366ch = _characterWindow[_offset];
424return this.Intern(_characterWindow, _lexemeStart, this.Width);
444if (_characterWindow[offset] == ' ')
448if (_characterWindow[offset] == '\n')
455char firstChar = _characterWindow[offset];
456if (firstChar == '\r' && _characterWindow[offset + 1] == '\n')
460if (firstChar == '/' && _characterWindow[offset + 1] == '/')
467if (_characterWindow[offset] == '/' && _characterWindow[offset + 1] == '/' && _characterWindow[offset + 2] == ' ')
476return this.Intern(_characterWindow, offset, length);
480return new string(_characterWindow, offset, length);