]> Cypherpunks repositories - gostls13.git/commit
cmd/compile/internal/types2: use an identifier map rather than isubst for recv type...
authorRobert Griesemer <gri@golang.org>
Fri, 8 Oct 2021 16:49:22 +0000 (09:49 -0700)
committerRobert Griesemer <gri@golang.org>
Fri, 8 Oct 2021 17:32:25 +0000 (17:32 +0000)
commita7d3a0e971818c754217829c8bd10b1e167d3481
tree10ddfd30608139a3cb6d46125561be30d8b99067
parent0d838ea5a2b69255d0a486dd9df27d14ad680aba
cmd/compile/internal/types2: use an identifier map rather than isubst for recv type params

This is a port of CL 354643 from go/types to types2 with adjustments:
- use of syntax rather than go/ast package as needed
- adjustments due to the different code for type parameter declarations
- rename of Checker.rparamMap to Checker.recvTParamMap, which seems clearer

Change-Id: I5311a0c05a13c6b87ea1422b250b90c3d05c5dce
Reviewed-on: https://go-review.googlesource.com/c/go/+/354693
Trust: Robert Griesemer <gri@golang.org>
Reviewed-by: Robert Findley <rfindley@google.com>
src/cmd/compile/internal/types2/check.go
src/cmd/compile/internal/types2/signature.go
src/cmd/compile/internal/types2/typexpr.go