1
0
mirror of https://github.com/golang/go synced 2024-11-18 23:05:06 -07:00
go/go
vovapi ac4f524c16 go/ssa: add position data in indexed range loops
Indexed range loops are lacking position data
in their SSA representation, so add the position data
into an index operation.

This improves the nilness output by providing position data
with the message.

Updates golang/go#31008

Change-Id: I664c8668bc74207e770657e21129d20fd70e7af6
GitHub-Last-Rev: 75831d240efd2a79ff95cc18041d29d332dc94ab
GitHub-Pull-Request: golang/tools#190
Reviewed-on: https://go-review.googlesource.com/c/tools/+/208599
Run-TryBot: Robert Findley <rfindley@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Robert Findley <rfindley@google.com>
2020-01-09 17:47:59 +00:00
..
analysis analysis/passes: report testing.Fatal* FailNow Skip* misuse in goroutines 2020-01-07 05:03:22 +00:00
ast go/ast/inspector: fix a small typo 2019-01-10 14:16:07 +00:00
buildutil all: fix more typos 2019-09-11 15:13:14 +00:00
callgraph all: add a space before +build in build tag comments 2019-09-08 12:23:18 +00:00
cfg go/cfg: stop once we've found the fallthrough target 2019-07-19 00:04:45 +00:00
expect all: remove many cases of space-space 2019-12-30 19:07:42 +00:00
gccgoexportdata
gcexportdata go/gcexportdata: use IExportData when writing gcexportdata 2019-10-04 02:16:33 +00:00
internal all: fix typo ("identifer" → "identifier") 2019-11-19 21:19:57 +00:00
loader Revert "go/packages: temporarily disable some tests running on go tip with -race" 2019-10-28 14:32:39 +00:00
packages internal/lsp: modify how we check for go 1.14 for modfiles 2020-01-08 19:23:01 +00:00
pointer all: fix more typos 2019-09-11 15:13:14 +00:00
ssa go/ssa: add position data in indexed range loops 2020-01-09 17:47:59 +00:00
types all: fix more typos 2019-09-11 15:13:14 +00:00
vcs go/vcs: ignore "mod" VCS type 2019-05-06 14:53:03 +00:00