]> Cypherpunks repositories - gostls13.git/commit
go/types, types2: test that error format strings have matching parentheses/brackets
authorRobert Griesemer <gri@golang.org>
Thu, 5 Jan 2023 22:51:31 +0000 (14:51 -0800)
committerGopher Robot <gobot@golang.org>
Tue, 17 Jan 2023 19:55:02 +0000 (19:55 +0000)
commitd4639ecdfc9051a7adcfb8945d93a45da56576ae
tree5d03beaee0469842c4e6063acfec9f8f1b9954c8
parentcf5dbd44591ca885fe8deb14c1500447c915e6b8
go/types, types2: test that error format strings have matching parentheses/brackets

Also, for go/types, switch to using syntax.Inspect instead of
(deprecated) syntax.Crawl.

Change-Id: I8333079040e9676e0a61c23d09d41ca790526eeb
Reviewed-on: https://go-review.googlesource.com/c/go/+/460759
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Robert Findley <rfindley@google.com>
Reviewed-by: Robert Griesemer <gri@google.com>
Run-TryBot: Robert Griesemer <gri@google.com>
Auto-Submit: Robert Griesemer <gri@google.com>
src/cmd/compile/internal/types2/errorcalls_test.go
src/go/types/errorcalls_test.go