]> Cypherpunks repositories - gostls13.git/commit
go/types, types2: separate formatting from error handling functions
authorRobert Griesemer <gri@golang.org>
Fri, 23 Feb 2024 22:40:37 +0000 (14:40 -0800)
committerGopher Robot <gobot@golang.org>
Wed, 28 Feb 2024 00:06:10 +0000 (00:06 +0000)
commit5e3c4016a436c357a57a6f7870913c6911c6904e
treedb7197e252d65539ea8320a11bef2feea844876d
parent629a6f5ae0b3a7b69608bd469ea7bf425768f748
go/types, types2: separate formatting from error handling functions

This change moves formatting-specific functionality into a new file
format.go and rearranges the code in the errors.go files to be in
the same order for go/types and types2, making them more similar.

No functionality change. This is a pure code reordering.

Change-Id: Ibd818792397be146ad510a6c7308c85d3bb65956
Reviewed-on: https://go-review.googlesource.com/c/go/+/566555
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Robert Griesemer <gri@google.com>
Reviewed-by: Robert Findley <rfindley@google.com>
Reviewed-by: Robert Griesemer <gri@google.com>
src/cmd/compile/internal/types2/errors.go
src/cmd/compile/internal/types2/format.go [new file with mode: 0644]
src/go/types/errors.go
src/go/types/format.go [new file with mode: 0644]