Fix incorrect assignment of stop token

This commit is contained in:
Peter Boyer 2016-02-01 11:27:49 -05:00
parent b10827d91c
commit 1ccaad7ae1
1 changed files with 1 additions and 1 deletions

View File

@ -536,7 +536,7 @@ func (p *BaseParser) PushNewRecursionContext(localctx ParserRuleContext, state,
var previous = p._ctx
previous.SetParent(localctx)
previous.SetInvokingState(state)
previous.SetStart(p._input.LT(-1))
previous.SetStop(p._input.LT(-1))
p._ctx = localctx
p._ctx.SetStart(previous.GetStart())