forked from jasder/antlr
Lint: Replace -= 1 with --
This commit is contained in:
parent
c81f2a7901
commit
5c4e28487e
|
@ -247,7 +247,7 @@ func (c *CommonTokenStream) NextTokenOnChannel(i, channel int) int {
|
|||
// on channel between i and 0.
|
||||
func (c *CommonTokenStream) previousTokenOnChannel(i, channel int) int {
|
||||
for i >= 0 && c.tokens[i].GetChannel() != channel {
|
||||
i -= 1
|
||||
i --
|
||||
}
|
||||
return i
|
||||
}
|
||||
|
|
|
@ -1105,7 +1105,7 @@ func (p *ParserATNSimulator) closure_(config ATNConfig, configs ATNConfigSet, cl
|
|||
|
||||
c.SetReachesIntoOuterContext(c.GetReachesIntoOuterContext() + 1)
|
||||
configs.SetDipsIntoOuterContext(true) // TODO: can remove? only care when we add to set per middle of p method
|
||||
newDepth -= 1
|
||||
newDepth--
|
||||
if ParserATNSimulatorDebug {
|
||||
fmt.Println("dips into outer ctx: " + c.String())
|
||||
}
|
||||
|
|
|
@ -165,7 +165,7 @@ func (prc *BaseParserRuleContext) GetChildOfType(i int, childType reflect.Type)
|
|||
return child.(RuleContext)
|
||||
}
|
||||
|
||||
i -= 1
|
||||
i --
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -210,7 +210,7 @@ func (prc *BaseParserRuleContext) GetToken(ttype int, i int) TerminalNode {
|
|||
return c2
|
||||
}
|
||||
|
||||
i -= 1
|
||||
i --
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue