diff --git a/runtime/Go/antlr/atn.go b/runtime/Go/antlr/atn.go index 48b66b953..a3d4fc891 100644 --- a/runtime/Go/antlr/atn.go +++ b/runtime/Go/antlr/atn.go @@ -62,7 +62,7 @@ func NewATN(grammarType int, maxTokenType int) *ATN { // restricted to tokens reachable staying within {@code s}'s rule. func (a *ATN) NextTokensInContext(s ATNState, ctx RuleContext) *IntervalSet { var anal = NewLL1Analyzer(a) - var res = anal.look(s, nil, ctx) + var res = anal.Look(s, nil, ctx) return res } diff --git a/runtime/Go/antlr/ll1_analyzer.go b/runtime/Go/antlr/ll1_analyzer.go index 2079c6227..e7ed84744 100644 --- a/runtime/Go/antlr/ll1_analyzer.go +++ b/runtime/Go/antlr/ll1_analyzer.go @@ -68,7 +68,7 @@ func (la *LL1Analyzer) getDecisionLookahead(s ATNState) []*IntervalSet { // @return The set of tokens that can follow {@code s} in the ATN in the // specified {@code ctx}. /// -func (la *LL1Analyzer) look(s, stopState ATNState, ctx RuleContext) *IntervalSet { +func (la *LL1Analyzer) Look(s, stopState ATNState, ctx RuleContext) *IntervalSet { var r = NewIntervalSet() var seeThruPreds = true // ignore preds get all lookahead var lookContext PredictionContext