]> Cypherpunks repositories - gostls13.git/commit
go/types, types2: rename definedType to declaredType and clarify docs
authorMark Freeman <mark@golang.org>
Wed, 13 Aug 2025 18:55:50 +0000 (14:55 -0400)
committerGopher Robot <gobot@golang.org>
Thu, 13 Nov 2025 20:54:47 +0000 (12:54 -0800)
commit7a372affd9eb4af18c3e2a0ce4d61f23ca1305d5
tree1f3daea17d066f818caafb3842a60eb2c1518159
parent57362e98140bdb964d05017690fb0aba37af6b48
go/types, types2: rename definedType to declaredType and clarify docs

declaredType seems a better name for this function because it is reached
when processing a (Named or Alias) type declaration. In both cases, the
fromRHS field (rather than the underlying field) will be set.

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