• Matthew Dempsky's avatar
    cmd/compile: improve declaration position precision · 26e0e8a8
    Matthew Dempsky authored
    Previously, n.Pos was reassigned to lineno when declare was called,
    which might not match where the identifier actually appeared in the
    source. This caused a loss of position precision for function
    parameters (which were all declared at the last parameter's position),
    and required some clumsy workarounds in bimport.go.
    
    This CL changes declare to leave n.Pos alone and also fixes a few
    places where n.Pos was not being set correctly.
    
    Change-Id: Ibe5b5fd30609c684367207df701f9a1bfa82867f
    Reviewed-on: https://go-review.googlesource.com/104275Reviewed-by: 's avatarRobert Griesemer <gri@golang.org>
    26e0e8a8
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...