Fix build errors in newly generated code

This commit is contained in:
Sam Harwell 2014-04-08 06:32:09 -05:00
parent f71699e20a
commit db2fe9dca9
2 changed files with 3 additions and 3 deletions

View File

@ -371,7 +371,7 @@ namespace Antlr4.Runtime.Atn
{
lexerActionExecutor = lexerActionExecutor.FixOffsetBeforeMatch(input.Index - startIndex);
}
bool treatEofAsEpsilon = t == CharStreamConstants.Eof;
bool treatEofAsEpsilon = t == IntStreamConstants.Eof;
if (Closure(input, c.Transform(target, lexerActionExecutor, true), reach, currentAltReachedAcceptState, true, treatEofAsEpsilon))
{
// any remaining configs for this alt have a lower priority than
@ -582,7 +582,7 @@ namespace Antlr4.Runtime.Atn
{
if (treatEofAsEpsilon)
{
if (t.Matches(CharStreamConstants.Eof, char.MinValue, char.MaxValue))
if (t.Matches(IntStreamConstants.Eof, char.MinValue, char.MaxValue))
{
c = config.Transform(t.target, false);
break;

View File

@ -1799,7 +1799,7 @@ namespace Antlr4.Runtime.Atn
continue;
}
}
if (!t.IsEpsilon && !closureBusy.AddItem(c))
if (!t.IsEpsilon && !closureBusy.Add(c))
{
// avoid infinite recursion for EOF* and EOF+
continue;