]> Cypherpunks.ru repositories - gostls13.git/commit
go/types: refactor the Context type map to accept arbitrary types
authorRobert Findley <rfindley@google.com>
Wed, 10 Nov 2021 03:20:18 +0000 (22:20 -0500)
committerRobert Findley <rfindley@google.com>
Fri, 12 Nov 2021 18:11:18 +0000 (18:11 +0000)
commit2dbf37045c24c8ab6f93083adc8be9ccdb3e3603
tree84049a5f0d625b6296b8a3802d1c615f5fab0c88
parent0c6a6cd4d8c19ca8892085a38477e5ff56b7cc2b
go/types: refactor the Context type map to accept arbitrary types

In preparation for storing *Signature types in Context, refactor the
type map to not depend on the *Named type API.

Change-Id: I0439d43aa4cc3a60a78f409a773a343a4fffd0fa
Reviewed-on: https://go-review.googlesource.com/c/go/+/362799
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/go/types/context.go
src/go/types/instantiate.go
src/go/types/named.go
src/go/types/typexpr.go