Skip to content

Commit 9f89605

Browse files
committed
Add an assert
1 parent 507552d commit 9f89605

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/Compilers/CSharp/Portable/Parser/SlidingTextWindow.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -344,6 +344,8 @@ public char PeekChar()
344344
/// </returns>
345345
public char PeekChar(int delta)
346346
{
347+
Debug.Assert(delta >= 0);
348+
347349
int position = this.Position;
348350
this.AdvanceChar(delta);
349351

0 commit comments

Comments
 (0)