Fix line to token range conversion

Not all lines include the start or end of a token (e.g. multi-line comments).
When converting from line ranges to token ranges, search leading/trailing lines
until a valid token position is found.
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=94024160
2 files changed
tree: 2d168a8fd565476414b100225320ceb4761e1b45
  1. core/
  2. .gitignore
  3. .travis.yml
  4. CONTRIBUTING.md
  5. LICENSE
  6. pom.xml
  7. README.md
README.md

google-java-format

Build Status

google-java-format is a program that reformats Java source code to comply with Google Java Style.