8 references to DefaultWindowLength
Microsoft.CodeAnalysis.CSharp (4)
Parser\SlidingTextWindow.cs (4)
21/// almost always move forward a 'chunk' (<see cref="DefaultWindowLength"/>) at a time. However, the buffer 60private static readonly ObjectPool<char[]> s_windowPool = new ObjectPool<char[]>(() => new char[DefaultWindowLength]); 85/// The length of this will normally be <see cref="DefaultWindowLength"/>, but may be smaller if we are at the end of the file 139var amountToRead = Math.Min(_textEnd - position, DefaultWindowLength);
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (4)
LexicalAndXml\LexicalTests.cs (4)
4593var code = new string('/', SlidingTextWindow.DefaultWindowLength - windowEnd.Length) + windowEnd + "0;"; 4617Assert.Equal(SlidingTextWindow.DefaultWindowLength - 2, token1.FullWidth); 4619Assert.Equal(SlidingTextWindow.DefaultWindowLength - 2, SlidingTextWindow.TestAccessor.GetOffset(lexer.TextWindow)); 4623Assert.Equal(SlidingTextWindow.DefaultWindowLength - 1, SlidingTextWindow.TestAccessor.GetOffset(lexer.TextWindow));