]> Cypherpunks repositories - gostls13.git/commit
go/types: generate builtins.go from types2 source
authorRobert Griesemer <gri@golang.org>
Thu, 8 Feb 2024 22:29:26 +0000 (14:29 -0800)
committerGopher Robot <gobot@golang.org>
Wed, 21 Feb 2024 17:07:56 +0000 (17:07 +0000)
commit81609c454be36b92155f795e726dc090659e1c50
treed1c6ecabdb8326c5c05b246b399667a467bbe344
parent808c8fb815183f0bd6978b17e41e7edf254b78ec
go/types: generate builtins.go from types2 source

Minor changes to types2.builtin.go to simplify automatic translation.

Added new conversion functions to generate_test.go to handle the
translation of builtins.go.

While at it, added additional helper functions to generate_test.go
and simplified some of the existing conversion functions.

This CL reduces the amount of code that needs to be maintained
manually by about 1000 LOC.

Change-Id: I1bd5c8eda0c0194a0b47e69882d2b987d91eef50
Reviewed-on: https://go-review.googlesource.com/c/go/+/562835
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Robert Findley <rfindley@google.com>
Reviewed-by: Robert Griesemer <gri@google.com>
Auto-Submit: Robert Griesemer <gri@google.com>
src/cmd/compile/internal/types2/builtins.go
src/cmd/compile/internal/types2/util.go
src/go/types/builtins.go
src/go/types/generate_test.go
src/go/types/util.go