]> Cypherpunks.ru repositories - gostls13.git/commit
[dev.typeparams] cmd/compile: add "check" field to noder.gcimports
authorMatthew Dempsky <mdempsky@google.com>
Fri, 11 Jun 2021 08:45:24 +0000 (01:45 -0700)
committerMatthew Dempsky <mdempsky@google.com>
Fri, 11 Jun 2021 14:48:07 +0000 (14:48 +0000)
commit4a735ce0680e5ea6088da8072ba4c2b0076e51cb
treeffc0fd77b0ce448e29575e5d07bcf0789d78eb8a
parent61888d47c4c49afc2e4ac3aeea42e83cda84d37b
[dev.typeparams] cmd/compile: add "check" field to noder.gcimports

The unified IR importer needs access to the *types2.Checker instance
to lazily construct objects and types. Eventually, maybe the
types2.Importer API can be extended to add the Checker as another
parameter (or more likely something like an ImportConfig struct), but
right now we can handle this ourselves as long as we forgo the
types2.(*Config).Check convenience wrapper.

Updates #46449.

Change-Id: I89c41d5d47c224a58841247cd236cd9f701a23a1
Reviewed-on: https://go-review.googlesource.com/c/go/+/327053
Trust: Matthew Dempsky <mdempsky@google.com>
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Cuong Manh Le <cuong.manhle.vn@gmail.com>
src/cmd/compile/internal/noder/import.go
src/cmd/compile/internal/noder/irgen.go