1
0
mirror of https://github.com/golang/go synced 2024-11-18 16:54:43 -07:00
go/src/internal
Robert Griesemer 5befb24bb5 go/types: use function name position for init errors
This seems more sensible than the func keyword. With this change,
go/types uses the same error position as types2 and we can narrow
the error tolerance a bit.

(The types2 change doesn't change its position, but it makes the
code clearer and symmetric to go/types.)

Change-Id: Iedea7c80caa7239a4343c8748cb779ec545e84d5
Reviewed-on: https://go-review.googlesource.com/c/go/+/427775
Auto-Submit: Robert Griesemer <gri@google.com>
Reviewed-by: Robert Griesemer <gri@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Robert Findley <rfindley@google.com>
Run-TryBot: Robert Griesemer <gri@google.com>
2022-09-02 16:43:15 +00:00
..
abi internal/abi: define riscv64 register ABI constants 2022-03-26 01:27:54 +00:00
buildcfg internal/buildcfg: enable unified IR by default 2022-08-18 22:53:59 +00:00
bytealg runtime: remove dead code and unnecessary checks for amd64 2022-08-18 17:17:01 +00:00
cfg cmd/go: set go.work path using GOWORK, and remove -workfile flag 2022-02-16 15:58:47 +00:00
cpu internal/cpu: detect sha-ni instruction support for AMD64 2022-08-15 15:15:10 +00:00
dag runtime: generate the lock ranking from a DAG description 2022-08-04 15:31:44 +00:00
diff all: gofmt main repo 2022-05-19 15:49:05 +00:00
fmtsort all: gofmt main repo 2022-04-11 16:34:30 +00:00
fuzz internal/fuzz: fix typo in function comments 2022-07-25 16:12:10 +00:00
goarch internal/goarch, internal/goos: update generators for syslist.go 2022-06-15 21:31:23 +00:00
godebug
goexperiment internal/goexperiment: add GOEXPERIMENT=boringcrypto 2022-04-04 21:06:49 +00:00
goos internal/goarch, internal/goos: update generators for syslist.go 2022-06-15 21:31:23 +00:00
goroot all: use os/exec instead of internal/execabs 2022-05-02 17:49:12 +00:00
goversion internal/goversion: update Version to 1.20 2022-08-02 18:07:14 +00:00
intern all: separate doc comment from //go: directives 2022-04-05 17:54:15 +00:00
itoa
lazyregexp
lazytemplate
nettrace all: gofmt main repo 2022-04-11 16:34:30 +00:00
obscuretestdata
oserror
pkgbits cmd/compile/internal/noder: explicitly handle function instantiations 2022-08-10 23:26:58 +00:00
poll internal/poll, internal/syscall/unix, net, runtime: convert openbsd (except mips64) to direct libc calls 2022-08-31 16:59:38 +00:00
profile runtime/pprof: remove round-to-file-start adjustment 2022-08-23 23:11:53 +00:00
race
reflectlite cmd/compile,runtime,reflect: move embedded bit from offset to name 2022-06-14 23:22:11 +00:00
saferio internal/saferio: avoid returning io.EOF from ReadData if data was read 2022-08-22 15:01:45 +00:00
singleflight internal/singleflight: make DoChan only return Result channel 2022-08-24 02:54:32 +00:00
syscall internal/poll, internal/syscall/unix, net, runtime: convert openbsd (except mips64) to direct libc calls 2022-08-31 16:59:38 +00:00
sysinfo
testenv internal/testenv: add a test for the GoTool function 2022-08-17 16:08:04 +00:00
testlog
trace internal/trace: fix typo in goroutines.go 2022-08-29 19:23:57 +00:00
txtar all: gofmt main repo 2022-04-11 16:34:30 +00:00
types/testdata go/types: use function name position for init errors 2022-09-02 16:43:15 +00:00
unsafeheader
xcoff internal/xcoff: better handling of malformed symbol tables 2022-08-22 15:41:53 +00:00