From 1ccaad7ae15f3ae8086df964871e91f99d00589f Mon Sep 17 00:00:00 2001 From: Peter Boyer Date: Mon, 1 Feb 2016 11:27:49 -0500 Subject: [PATCH] Fix incorrect assignment of stop token --- runtime/Go/src/antlr4/Parser.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/Go/src/antlr4/Parser.go b/runtime/Go/src/antlr4/Parser.go index a87cf4c8b..15a99e015 100644 --- a/runtime/Go/src/antlr4/Parser.go +++ b/runtime/Go/src/antlr4/Parser.go @@ -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())