]> Cypherpunks repositories - gostls13.git/commit
go/types: add go1.23 iterator methods for 10 exported types
authorAlan Donovan <adonovan@google.com>
Sun, 31 Mar 2024 22:37:12 +0000 (18:37 -0400)
committerAlan Donovan <adonovan@google.com>
Wed, 31 Jul 2024 22:54:09 +0000 (22:54 +0000)
commit2c1bbe7e32e9e56905cc2c4b34530d69bb5cbc6e
treec1b07579f45572c4a7ff0c8ead6867bc7acf4d14
parent0a4215c234fedb3c888dd184416fa1ef08dfe9ae
go/types: add go1.23 iterator methods for 10 exported types

These methods will not be mirrored in types2 until the
bootstrap compiler reaches go1.23; therefore range-over-func
statements must not be used in code common to types + types2.

Fixes #66626

Change-Id: I3c2c15e3652ee95d9aff208d8a188b912ed5bc9a
Reviewed-on: https://go-review.googlesource.com/c/go/+/575455
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>
api/next/66626.txt [new file with mode: 0644]
doc/next/6-stdlib/99-minor/go/types/66626.md [new file with mode: 0644]
src/go/types/example_test.go
src/go/types/iter.go [new file with mode: 0644]