]> Cypherpunks repositories - gostls13.git/commit
go/types, types2: rename kindString to compositeKind and simplify function
authorRobert Griesemer <gri@golang.org>
Tue, 22 Oct 2024 17:13:29 +0000 (10:13 -0700)
committerGopher Robot <gobot@golang.org>
Wed, 23 Oct 2024 04:42:58 +0000 (04:42 +0000)
commit7ad9a2c65fbffead70474465f5a0f1ad67fe5703
tree40fe0e5997c42151ac15763fc9ddaf00be14cbfc
parent34e96356b7d6a5d4e1f69a92585707cfe853cc0d
go/types, types2: rename kindString to compositeKind and simplify function

Simplify functionality of compositeKind (formerly: kindString) by
giving it a smaller scope. Move it into operand.go for future use
in that file. Adjust existing uses.

Change-Id: I73d04a8c0be44d9604e56bd4c0289afdcdd32238
Reviewed-on: https://go-review.googlesource.com/c/go/+/621457
Reviewed-by: Robert Griesemer <gri@google.com>
Auto-Submit: Robert Griesemer <gri@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Tim King <taking@google.com>
src/cmd/compile/internal/types2/expr.go
src/cmd/compile/internal/types2/operand.go
src/go/types/expr.go
src/go/types/operand.go