]> Cypherpunks repositories - gostls13.git/commit
go/types: export TypeParam.Index and remove TypeParam._SetId
authorRobert Findley <rfindley@google.com>
Wed, 6 Oct 2021 17:51:21 +0000 (13:51 -0400)
committerRobert Findley <rfindley@google.com>
Tue, 12 Oct 2021 18:52:28 +0000 (18:52 +0000)
commit26b6833308548f78a0926309c3acf7fd59b287f5
tree9cc554ada3b797a373b9939b905dd97aa5bcd257
parentf8bfdc9eda4a065b88e5d7ab968957d9c84694bf
go/types: export TypeParam.Index and remove TypeParam._SetId

This change resolves a TODO regarding a couple uncertain APIs for
types.TypeParam. In the case of TypeParam._Index, we've decided it is
worth exporting. In the case of TypeParam._SetId, we've decided it is
unnecessary.

This aligns go/types with types2 (a doc comment in types2 is also
updated).

Updates #47916

Change-Id: I705e8b3437d014775c473e2f8be6f32b1540bb0e
Reviewed-on: https://go-review.googlesource.com/c/go/+/354370
Trust: Robert Findley <rfindley@google.com>
Run-TryBot: Robert Findley <rfindley@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Robert Griesemer <gri@golang.org>
src/cmd/compile/internal/types2/typeparam.go
src/go/types/typeparam.go