]> Cypherpunks repositories - gostls13.git/commit
go/types, types2: introduce typeset iterators
authorRobert Griesemer <gri@golang.org>
Thu, 19 Sep 2024 21:55:36 +0000 (14:55 -0700)
committerGopher Robot <gobot@golang.org>
Tue, 24 Sep 2024 20:35:14 +0000 (20:35 +0000)
commit1e5a72e980d481dbe1c605aab870275d6ab4e81d
treecd2fdd9d46912a062c8724d633430625950bfdc2
parent5a1de4ed34c476d443946c2d8bbf118ef389b968
go/types, types2: introduce typeset iterators

Preparation for removing the existing non-standard iterators
(is, underIs). Note that we cannot use typeset iterators in
range-over-func because the bootstrap compiler doesn't have
access to it yet.

While at it, move underIs from expr.go to under.go
and adjust some doc strings in typset.go to match
prevailing style in that file.

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