Lint: Replace -= 1 with --

This commit is contained in:
Will Faught 2016-05-21 00:19:29 -07:00
parent c81f2a7901
commit 5c4e28487e
3 changed files with 4 additions and 4 deletions

View File

@ -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
}

View File

@ -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())
}

View File

@ -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 --
}
}
}