go/src
Keith Randall f64385b720 cmd/compile: set correct line number for method wrappers
When converting a method to a function, like this:

type T ...
func (t T) foo() {
}
var t T
f := t.foo

We need to build a wrapper function for the partially evaluated
method. Currently that wrapper function gets the line number of
the first place where t.foo appears. Instead it should have the
line number of where foo is declared.

Fixes #26839

Change-Id: I7dbe2094e53d5d336f329273f10f8430e0af544e
Reviewed-on: https://go-review.googlesource.com/c/153498
Run-TryBot: Keith Randall <khr@golang.org>
Reviewed-by: Robert Griesemer <gri@golang.org>
2018-12-10 23:31:21 +00:00
..
archive all: fix a bunch of misspellings 2018-10-08 03:12:03 +00:00
bufio bufio: make Reader.Peek invalidate Unreads 2018-11-13 15:08:13 +00:00
builtin
bytes all: use "reports whether" consistently instead of "returns whether" 2018-12-02 15:12:26 +00:00
cmd cmd/compile: set correct line number for method wrappers 2018-12-10 23:31:21 +00:00
compress all: fix a bunch of misspellings 2018-10-06 15:40:03 +00:00
container container/heap: adjust wording in comments 2018-11-13 13:42:59 +00:00
context context: avoid duplicate removeChild 2018-10-03 15:26:10 +00:00
crypto crypto/ecdsa: fix NSA reference to Suite B implementer's guide to FIPS 186-3 2018-12-10 16:06:44 +00:00
database/sql all: use "reports whether" consistently instead of "returns whether" 2018-12-02 15:12:26 +00:00
debug all: use "reports whether" consistently instead of "returns whether" 2018-12-02 15:12:26 +00:00
encoding encoding/pem: test getLine does not include trailing whitespace 2018-11-19 23:35:21 +00:00
errors
expvar expvar: add Map.Delete 2018-10-04 01:16:52 +00:00
flag flag: return a consistent parse error if the flag value is invalid 2018-10-19 03:48:38 +00:00
fmt fmt: update formatting example for maps 2018-11-26 05:08:44 +00:00
go go/build: improve comment on Context.CgoEnabled 2018-12-10 21:40:02 +00:00
hash hash/fnv: use bits.Mul64 for 128-bit hash 2018-12-10 22:50:48 +00:00
html all: use "reports whether" consistently in the few places that didn't 2018-11-02 22:47:58 +00:00
image jpeg: simplify 'x = x op ...' to 'x op= ...' 2018-10-13 11:18:56 +00:00
index/suffixarray
internal all: move cmd/internal/xcoff to internal/xcoff 2018-12-10 18:52:31 +00:00
io io: export StringWriter 2018-10-03 20:13:35 +00:00
log log: add Logger.Writer method 2018-10-25 23:23:57 +00:00
math math/bits: remove named return in TrailingZeros16 2018-12-09 14:27:56 +00:00
mime mime: remove allocation introduced in recent fix 2018-11-20 19:09:38 +00:00
net net: skip TestVariousDeadlines on Plan 9 2018-12-05 20:32:39 +00:00
os os: increase default write size for TestClosedPipeRaceWrite 2018-12-04 03:32:16 +00:00
path all: use "reports whether" consistently instead of "returns whether" 2018-12-02 15:12:26 +00:00
plugin plugin: fix build constraint to disable test on linux/arm64 2018-11-28 18:14:20 +00:00
reflect reflect: add comment for String method of Kind struct 2018-11-16 14:29:14 +00:00
regexp regexp: use backquotes for all regular expression examples 2018-11-20 12:05:15 +00:00
runtime runtime: fix CGO traceback frame count 2018-12-10 23:09:58 +00:00
sort
strconv strconv: add comment explaining bounded shift in formatBits 2018-10-15 21:45:52 +00:00
strings strings,bytes: use inlineable function trampolines instead of linkname 2018-11-08 20:52:47 +00:00
sync all: use "reports whether" consistently in the few places that didn't 2018-11-02 22:47:58 +00:00
syscall syscall, cmd/go/internal/lockedfile: remove Flock syscall for aix/ppc64 2018-12-04 14:37:14 +00:00
testdata Revert "compress: move benchmark text from src/testdata to src/compress/testdata" 2018-10-01 16:16:21 +00:00
testing all: use "reports whether" consistently instead of "returns whether" 2018-12-02 15:12:26 +00:00
text text/template/parse: simplify Tree.pipeline 2018-10-29 12:20:11 +00:00
time all: use "reports whether" consistently instead of "returns whether" 2018-12-02 15:12:26 +00:00
unicode unicode: improve generated comments for categories 2018-11-28 03:12:48 +00:00
unsafe cmd/compile: assume unsafe pointer arithmetic generates non-nil results 2018-11-14 21:01:36 +00:00
Make.dist
all.bash
all.bat
all.rc
androidtest.bash
bootstrap.bash
buildall.bash
clean.bash
clean.bat
clean.rc
cmp.bash
iostest.bash
make.bash build: clear GO111MODULE during make.bash etc 2018-11-16 18:54:22 +00:00
make.bat build: clear GO111MODULE during make.bash etc 2018-11-16 18:54:22 +00:00
make.rc build: clear GO111MODULE during make.bash etc 2018-11-16 18:54:22 +00:00
naclmake.bash
nacltest.bash
race.bash cmd,runtime: enable race detector on arm64 2018-11-13 16:57:22 +00:00
race.bat
run.bash build: clear GO111MODULE during make.bash etc 2018-11-16 18:54:22 +00:00
run.bat build: clear GO111MODULE during make.bash etc 2018-11-16 18:54:22 +00:00
run.rc build: clear GO111MODULE during make.bash etc 2018-11-16 18:54:22 +00:00