diff options
| author | Russ Cox <rsc@golang.org> | 2020-10-18 20:26:46 -0400 |
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2020-10-20 20:44:22 +0000 |
| commit | 80182d45b5d2ff86da7b6587a2a09d8924dd0a95 (patch) | |
| tree | e530ab22e0a1b280c41375ce35a6e7353b45a81f /src/testing | |
| parent | 7f736694fe9b254efa7155a0a5da87c2c18e6078 (diff) | |
| download | go-80182d45b5d2ff86da7b6587a2a09d8924dd0a95.tar.xz | |
go/build: refactor per-file info & reader
Make code cleaner and a bit more adaptable:
instead of an ever-growing list of arguments and results for readImports,
put everything in a fileInfo struct, and rename function to readGoInfo.
(Not a goInfo struct because it gets used for non-Go source files as well,
but that processing is much simpler.)
The refactoring simplifies the embed work in the next CL,
but this CL makes no semantic changes.
For #41191.
Change-Id: Id2de2a3b8d351adc1c919dcf79dfbe79fc3d5301
Reviewed-on: https://go-review.googlesource.com/c/go/+/243940
Trust: Russ Cox <rsc@golang.org>
Run-TryBot: Russ Cox <rsc@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Jay Conrod <jayconrod@google.com>
Diffstat (limited to 'src/testing')
0 files changed, 0 insertions, 0 deletions
