1
0
mirror of https://github.com/golang/go synced 2024-11-18 14:14:46 -07:00
go/go
Dominik Honnef 26f46d2f7e go/types/objectpath: cache result of call to scope.Names
Names is a somewhat expensive method, which sorts the returned slice.
Avoiding the extra call helps clients that use objectpath a lot.

Change-Id: I49a3445bb4f0056d1b915a2104e136925ee9dbf9
Reviewed-on: https://go-review.googlesource.com/c/tools/+/231518
Run-TryBot: Dominik Honnef <dominik@honnef.co>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Michael Matloob <matloob@golang.org>
2020-05-05 02:31:15 +00:00
..
analysis go/analysis/analysistest: support testing mutually exclusive suggested fixes 2020-04-27 21:46:58 +00:00
ast go/ast/inspector: impose maximum capacity 2020-04-10 18:16:43 +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 all: fix some staticcheck errors 2020-01-29 04:53:41 +00:00
expect go/packages/packagestest: do not overwrite existing go.mod file 2020-02-06 15:23:23 +00:00
gccgoexportdata go/gccgoexportdata: correctly handle archive files containing string tables 2016-11-09 21:28:38 +00:00
gcexportdata go/internal/gcimporter: remove support for binary export data 2020-04-27 21:30:09 +00:00
internal go/internal/gcimporter: remove support for binary export data 2020-04-27 21:30:09 +00:00
loader go/loader: remove check on ioutil.TestTempFile in TestStdlib 2020-04-13 16:19:37 +00:00
packages go/packages/packagestest: dedupe based on note position 2020-04-23 20:11:57 +00:00
pointer all: fix some staticcheck errors 2020-01-29 04:53:41 +00:00
ssa go/ssa/interp: remove unused import 2020-02-25 20:57:19 +00:00
types go/types/objectpath: cache result of call to scope.Names 2020-05-05 02:31:15 +00:00
vcs go/vcs: ignore "mod" VCS type 2019-05-06 14:53:03 +00:00