]> Cypherpunks repositories - gostls13.git/commit
go/types, types2: slightly simplify rangeKeyVal function
authorRobert Griesemer <gri@golang.org>
Mon, 16 Sep 2024 20:50:24 +0000 (13:50 -0700)
committerGopher Robot <gobot@golang.org>
Mon, 16 Sep 2024 21:21:10 +0000 (21:21 +0000)
commitf6c89abf897c4adf7dbd598029f0c12452b4ca25
treeb7cfeaddead5d66bf1150c9fab38937b0816a769
parentae8708f7441b24dac126122c5365327d29fa0012
go/types, types2: slightly simplify rangeKeyVal function

Compute the signature type of an iterator function argument
only once. This eliminates the need for two separate toSig
calls.

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