Move getIntRange to a visitor class
Merge pull request #3118 from yebblies/getIntRange

[DDMD] [refactor] Move getIntRange to a visitor class