]> Cypherpunks repositories - gostls13.git/commit
go/types, types2: factor type checking of basic literals and generate go/types code
authorRobert Griesemer <gri@golang.org>
Thu, 5 Sep 2024 01:06:50 +0000 (18:06 -0700)
committerGopher Robot <gobot@golang.org>
Thu, 5 Sep 2024 22:12:04 +0000 (22:12 +0000)
commit0fc3b127a09ee5f99f4f9f9a83d3364ff2b69a9b
tree81660528e59e4960e2407844ffdb93e74503e4c0
parent0f12e51ce776fed0c3cb5e26225d4906268a2e8a
go/types, types2: factor type checking of basic literals and generate go/types code

Move the code for type checking of basic literals into literals.go.

In go/types, the respective code is now generated from the types2 source.

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