diff options
author | 2017-10-02 19:59:28 +0200 | |
---|---|---|
committer | 2017-10-06 19:42:00 +0200 | |
commit | 2a46d749ed76357fcc24b9c91726735db57a31e7 (patch) | |
tree | a9012f8d1d14bc2a90f8ec345d660858d810a0fa /.gitignore | |
parent | b8d4be0fc8a368de1bba40a27d2daa7110f1dccc (diff) |
Skylark parser: make the end position of location ranges inclusive.
Previously, the end line and column of a location were the position past the actual end of a location. This makes sense for the end offset, because one can use `input.substring(startOffset, endOffset)` to get the string belonging to an ASTNode.
However the line and column (as opposed to the offset) aren't used for that. Therefore I made the change that the end line and column now point to the last character in the location. This is also they way every compiler I know does it.
RELNOTES: none
PiperOrigin-RevId: 170723732
Diffstat (limited to '.gitignore')
0 files changed, 0 insertions, 0 deletions