aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/compile/internal/noder/reader2.go
diff options
context:
space:
mode:
authorRobert Findley <rfindley@google.com>2021-09-29 09:35:02 -0400
committerRobert Findley <rfindley@google.com>2021-09-29 17:06:53 +0000
commit99d5d8ab6b6819f84bb62aeb3b1eaefaab01989f (patch)
tree66600a4a5502c9db14b9104fda42d8535f81e6cf /src/cmd/compile/internal/noder/reader2.go
parentb35c668072204c2ef2773df383bab5b04b7abca6 (diff)
downloadgo-99d5d8ab6b6819f84bb62aeb3b1eaefaab01989f.tar.xz
go/types, types2: rename Environment to Context
Replace the name Environment with Context, as discussed in #47916. Along the way, fix some stale or inaccurate comments. The Environment type remains temporarily as an alias for Context, to allow the x/tools Trybot to pass until dependency on types.Environment can be removed. Updates #47916 Change-Id: Iffd069ab0e8adebf4207c8f8891468a64d32b7cc Reviewed-on: https://go-review.googlesource.com/c/go/+/353089 Trust: Robert Findley <rfindley@google.com> Run-TryBot: Robert Findley <rfindley@google.com> Reviewed-by: Robert Griesemer <gri@golang.org> TryBot-Result: Go Bot <gobot@golang.org>
Diffstat (limited to 'src/cmd/compile/internal/noder/reader2.go')
-rw-r--r--src/cmd/compile/internal/noder/reader2.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cmd/compile/internal/noder/reader2.go b/src/cmd/compile/internal/noder/reader2.go
index dcd9a65f40..de7211305b 100644
--- a/src/cmd/compile/internal/noder/reader2.go
+++ b/src/cmd/compile/internal/noder/reader2.go
@@ -16,7 +16,7 @@ import (
type pkgReader2 struct {
pkgDecoder
- env *types2.Environment
+ env *types2.Context
imports map[string]*types2.Package
posBases []*syntax.PosBase
@@ -24,7 +24,7 @@ type pkgReader2 struct {
typs []types2.Type
}
-func readPackage2(env *types2.Environment, imports map[string]*types2.Package, input pkgDecoder) *types2.Package {
+func readPackage2(env *types2.Context, imports map[string]*types2.Package, input pkgDecoder) *types2.Package {
pr := pkgReader2{
pkgDecoder: input,