refactored AntlrInputStream.cs by removing a redundand if-statement

signed contributors.txt
This commit is contained in:
Denis Kyashif 2020-04-07 15:09:04 +03:00
parent a4c66dc863
commit 1cb069d10f
2 changed files with 3 additions and 3 deletions

View File

@ -241,3 +241,4 @@ YYYY/MM/DD, github id, Full name, email
2020/02/10, julibert, Julián Bermúdez Ortega, julibert.dev@gmail.com 2020/02/10, julibert, Julián Bermúdez Ortega, julibert.dev@gmail.com
2020/02/21, StochasticTinkr, Daniel Pitts, github@coloraura.com 2020/02/21, StochasticTinkr, Daniel Pitts, github@coloraura.com
2020/03/17, XsongyangX, Song Yang, songyang1218@gmail.com 2020/03/17, XsongyangX, Song Yang, songyang1218@gmail.com
2020/04/07, deniskyashif, Denis Kyashif, denis.kyashif@gmail.com

View File

@ -48,8 +48,7 @@ namespace Antlr4.Runtime
System.Diagnostics.Debug.Assert(LA(1) == IntStreamConstants.EOF); System.Diagnostics.Debug.Assert(LA(1) == IntStreamConstants.EOF);
throw new InvalidOperationException("cannot consume EOF"); throw new InvalidOperationException("cannot consume EOF");
} }
//System.out.println("prev p="+p+", c="+(char)data[p]); else
if (p < n)
{ {
p++; p++;
} }