diff options
| author | Robert Findley <rfindley@google.com> | 2022-05-07 15:50:05 -0400 |
|---|---|---|
| committer | Robert Findley <rfindley@google.com> | 2022-05-24 17:47:42 +0000 |
| commit | d5ae7a64876630ab40f7bd04fdb5ad6a3733dae7 (patch) | |
| tree | 9e297ce25d9b13007d3b031a35c676b6084e82ae /src/internal/pkgbits/decoder.go | |
| parent | 7ce38641564e5c0183bb09df8c523caf5e0ab8e1 (diff) | |
| download | go-d5ae7a64876630ab40f7bd04fdb5ad6a3733dae7.tar.xz | |
go/types, types2: remove redundant calls to Named.resolve
The resolved status of a Named type should be owned by its API, and
callers should access resolved data via methods. Remove several
instances where Named.resolve is explicitly invoked, only to be followed
by a method that also resolves.
Also make two minor cleanups:
- Remove the tparams parameter to Checker.newNamed, as it was unused.
- Include position information when assertions fail, so that one doesn't
need to go digging in the panicking stack to find the assertion
location.
Updates #52728
Change-Id: Icbe8c89e9cfe02d60af7d9ba907eaebe1f00193e
Reviewed-on: https://go-review.googlesource.com/c/go/+/404874
Run-TryBot: Robert Findley <rfindley@google.com>
Reviewed-by: Robert Griesemer <gri@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Diffstat (limited to 'src/internal/pkgbits/decoder.go')
0 files changed, 0 insertions, 0 deletions
