1
0
mirror of https://github.com/golang/go synced 2024-09-30 17:28:32 -06:00
go/src
Robert Griesemer 2123a6c644 cmd/compile: fix recorded export data position info
The position information recorded now consists of the line-
directive relative filename and line number. It would be
relatively easy to also encode absolute position information
as necessary (by serializing src.PosBase data).

For example, given $GOROOT/src/tmp/x.go:

	package p

	const C0 = 0

	//line c.go:10
	const C1 = 1

	//line t.go:20
	type T int

	//line v.go:30
	var V T

	//line f.go:40
	func F() {}

The recorded positions for the exported entities are:

	C0 $GOROOT/src/tmp/x.go 3
	C1 c.go 10
	T t.go 20
	V v.go 30
	F f.go 40

Fix verified by manual inspection. There's currently no easy way
to test this, but it will eventually be tested when we fix #7311.

Fixes #19391.

Change-Id: I6269067ea58358250fe6dd1f73bdf9e5d2adfe3d
Reviewed-on: https://go-review.googlesource.com/37936
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
2017-03-08 18:26:16 +00:00
..
archive all: remove the the duplicate words 2017-03-06 04:39:12 +00:00
bufio
builtin
bytes bytes: make bytes.Buffer cache-friendly 2017-02-28 05:19:38 +00:00
cmd cmd/compile: fix recorded export data position info 2017-03-08 18:26:16 +00:00
compress Revert "all: test adjustments for the iOS builder" 2017-03-04 00:01:14 +00:00
container
context context: document that Err is unspecified before Done 2017-02-22 17:42:28 +00:00
crypto crypto/x509: rename and reposition rsaPublicKey struct declaration 2017-03-07 16:49:28 +00:00
database/sql database/sql: proper prepared statement support in transactions 2017-03-08 17:32:12 +00:00
debug cmd/link: write dwarf sections 2017-03-01 04:51:03 +00:00
encoding encoding/base64, html/template: fix grammar mistakes 2017-03-07 17:42:45 +00:00
errors
expvar expvar: add benchmarks for steady-state Map Add calls 2017-02-14 22:11:35 +00:00
flag
fmt fmt: add short note about %g precision 2017-02-21 19:02:43 +00:00
go runtime/pprof: add GNU build IDs to Mappings recorded from /proc/self/maps 2017-03-08 01:09:18 +00:00
hash hash/crc32: use sub-benchmarks 2017-02-08 17:17:08 +00:00
html encoding/base64, html/template: fix grammar mistakes 2017-03-07 17:42:45 +00:00
image image/gif: handle an extra data sub-block byte. 2017-03-02 23:49:32 +00:00
index/suffixarray
internal internal/poll: code cleanup 2017-03-07 21:54:36 +00:00
io io: fix test when MultiReader is inlined with -l=3 2017-02-02 18:56:20 +00:00
log
math all: remove the the duplicate words 2017-03-06 04:39:12 +00:00
mime mime: fix panic parsing 'encoded-word', be stricter 2017-03-07 17:38:24 +00:00
net net/http: use httptest.Server Client in tests 2017-03-08 15:51:48 +00:00
os os/user: use the stubs fallback for Android 2017-03-07 19:38:24 +00:00
path path/filepath: add test for directory junction walk 2017-02-12 23:33:01 +00:00
plugin plugin: remove unnecessary import "C" from example 2017-02-09 18:32:53 +00:00
reflect reflect: fix bucketOf to only look at ptrdata entries in gcdata 2017-02-22 02:19:48 +00:00
regexp regexp/syntax: remove unused flags parameter 2017-03-06 19:11:09 +00:00
runtime runtime/pprof: add GNU build IDs to Mappings recorded from /proc/self/maps 2017-03-08 01:09:18 +00:00
sort sort: new example: Sorting slices with sort.SliceStable 2017-02-22 21:23:12 +00:00
strconv strconv: remove unused append rune width param 2017-03-06 04:37:13 +00:00
strings strings: fix handling of invalid UTF-8 sequences in Map 2017-02-28 22:50:53 +00:00
sync sync/atomic: fix mipsx frame sizes 2017-02-21 18:42:47 +00:00
syscall syscall: fix linux/mipsx ret value FP offsets for Syscall9 2017-02-21 18:43:02 +00:00
testing testing: fix Benchmark() to start at 1 iteration, not 100 2017-03-01 11:06:34 +00:00
text text/template: fix method lookup on addressable nil pointer 2017-02-09 14:58:40 +00:00
time time: strip monotonic time in t.Round, t.Truncate 2017-03-02 13:52:08 +00:00
unicode
unsafe
vendor/golang_org/x vendor: import golang.org/x/net/proxy 2017-03-02 01:28:16 +00:00
all.bash
all.bat
all.rc
androidtest.bash
bootstrap.bash
buildall.bash buildall.bash: clarify target selection 2017-02-04 04:34:36 +00:00
clean.bash
clean.bat
clean.rc
cmp.bash
iostest.bash
make.bash
make.bat
Make.dist
make.rc
naclmake.bash
nacltest.bash
race.bash
race.bat
run.bash run.bash: set GOPATH to $GOROOT/nil before running tests 2017-02-24 18:18:30 +00:00
run.bat
run.rc