]> Cypherpunks repositories - gostls13.git/commit
go/types, types2: rename Named.under to Named.resolveUnderlying
authorRobert Griesemer <gri@google.com>
Thu, 16 Oct 2025 23:58:25 +0000 (16:58 -0700)
committerGopher Robot <gobot@golang.org>
Wed, 22 Oct 2025 15:20:32 +0000 (08:20 -0700)
commit4bdb55b5b86fc96addd43a845dabf6b76d100202
tree40e1af998e765337967fcd1ea855bf461e020a7b
parent29d43df8ab212910487345c354491b67780798cf
go/types, types2: rename Named.under to Named.resolveUnderlying

Named.resolveUnderlying is now just a helper function for Underlying
and only called from there. The name makes is clearer what this function
does; it also doesn't need to return a result anymore.

While at it, slightly simplify the function body.

Change-Id: I167c4be89b1bfcc69f6b528ddb6ed4c90481194a
Reviewed-on: https://go-review.googlesource.com/c/go/+/712521
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Mark Freeman <markfreeman@google.com>
Auto-Submit: Robert Griesemer <gri@google.com>
Reviewed-by: Robert Griesemer <gri@google.com>
src/cmd/compile/internal/types2/named.go
src/go/types/named.go