]> Cypherpunks repositories - gostls13.git/commit
go/types, types2: rename Environment to Context
authorRobert Findley <rfindley@google.com>
Wed, 29 Sep 2021 13:35:02 +0000 (09:35 -0400)
committerRobert Findley <rfindley@google.com>
Wed, 29 Sep 2021 17:06:53 +0000 (17:06 +0000)
commit99d5d8ab6b6819f84bb62aeb3b1eaefaab01989f
tree66600a4a5502c9db14b9104fda42d8535f81e6cf
parentb35c668072204c2ef2773df383bab5b04b7abca6
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>
26 files changed:
src/cmd/compile/internal/noder/import.go
src/cmd/compile/internal/noder/irgen.go
src/cmd/compile/internal/noder/reader2.go
src/cmd/compile/internal/noder/unified.go
src/cmd/compile/internal/types2/api.go
src/cmd/compile/internal/types2/check.go
src/cmd/compile/internal/types2/context.go [moved from src/cmd/compile/internal/types2/environment.go with 67% similarity]
src/cmd/compile/internal/types2/decl.go
src/cmd/compile/internal/types2/instantiate.go
src/cmd/compile/internal/types2/instantiate_test.go
src/cmd/compile/internal/types2/named.go
src/cmd/compile/internal/types2/object.go
src/cmd/compile/internal/types2/signature.go
src/cmd/compile/internal/types2/subst.go
src/cmd/compile/internal/types2/typestring.go
src/go/types/api.go
src/go/types/check.go
src/go/types/context.go [moved from src/go/types/environment.go with 65% similarity]
src/go/types/decl.go
src/go/types/instantiate.go
src/go/types/instantiate_test.go
src/go/types/named.go
src/go/types/object.go
src/go/types/signature.go
src/go/types/subst.go
src/go/types/typestring.go