• 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
..
addr2line Loading commit data...
api Loading commit data...
asm Loading commit data...
buildid Loading commit data...
cgo Loading commit data...
compile Loading commit data...
cover Loading commit data...
dist Loading commit data...
doc Loading commit data...
fix Loading commit data...
go Loading commit data...
gofmt Loading commit data...
internal Loading commit data...
link Loading commit data...
nm Loading commit data...
objdump Loading commit data...
pack Loading commit data...
pprof Loading commit data...
test2json Loading commit data...
trace Loading commit data...
vendor Loading commit data...
vet Loading commit data...