• Robert Griesemer's avatar
    cmd/compile/internal/syntax: start line offset (column) numbers at 1 · 1f9f0ea3
    Robert Griesemer authored
    We could leave it alone and fix line offset (column) numbers when
    reporting errors, but that is likely to cause confusion (internal
    numbers don't match reported numbers). Instead, switch to default
    numbering starting at 1.
    
    For package syntax-internal use only, introduced constants defining
    the line and column bases, and use them throughout the code and its
    tests. It is possible to change these constants and package syntax
    will continue to work. But changing them is going to break any client
    that makes explicit assumptions about line and column numbers (which
    is "all of them").
    
    Change-Id: Ia3d136a8ec8d9372ed9c05ca47d3dff222cf030e
    Reviewed-on: https://go-review.googlesource.com/37996Reviewed-by: 's avatarMatthew Dempsky <mdempsky@google.com>
    1f9f0ea3
Name
Last commit
Last update
.github Loading commit data...
api Loading commit data...
doc Loading commit data...
lib/time Loading commit data...
misc Loading commit data...
src Loading commit data...
test Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTING.md Loading commit data...
CONTRIBUTORS Loading commit data...
LICENSE Loading commit data...
PATENTS Loading commit data...
README.md Loading commit data...
favicon.ico Loading commit data...
robots.txt Loading commit data...