aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Scales <danscales@google.com>2021-09-19 18:18:41 -0700
committerDan Scales <danscales@google.com>2021-09-20 16:09:39 +0000
commita81b0dc6ee9096e3885e083e2dea2c743c0f4540 (patch)
treee2204dab9d0bb25298e1fd1461e386ffdcf643cc
parent119213566a8e0da729a8bccc7d7f7d525f0c1cf9 (diff)
downloadgo-a81b0dc6ee9096e3885e083e2dea2c743c0f4540.tar.gz
go-a81b0dc6ee9096e3885e083e2dea2c743c0f4540.zip
cmd/compile: rename instType -> instanceType
This is to keep in alignment with the naming in go/types. Change-Id: I19ded29b39665d7b892fdbc8e92c7f15caf7ab66 Reviewed-on: https://go-review.googlesource.com/c/go/+/350950 Run-TryBot: Dan Scales <danscales@google.com> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Robert Griesemer <gri@golang.org> Trust: Dan Scales <danscales@google.com>
-rw-r--r--src/cmd/compile/internal/typecheck/iexport.go4
-rw-r--r--src/cmd/compile/internal/typecheck/iimport.go2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/cmd/compile/internal/typecheck/iexport.go b/src/cmd/compile/internal/typecheck/iexport.go
index def9408544..bbdad09782 100644
--- a/src/cmd/compile/internal/typecheck/iexport.go
+++ b/src/cmd/compile/internal/typecheck/iexport.go
@@ -255,7 +255,7 @@ const (
structType
interfaceType
typeParamType
- instType
+ instanceType // Instantiation of a generic type
unionType
)
@@ -893,7 +893,7 @@ func (w *exportWriter) doTyp(t *types.Type) {
if strings.Index(s.Name, "[") < 0 {
base.Fatalf("incorrect name for instantiated type")
}
- w.startType(instType)
+ w.startType(instanceType)
w.pos(t.Pos())
// Export the type arguments for the instantiated type. The
// instantiated type could be in a method header (e.g. "func (v
diff --git a/src/cmd/compile/internal/typecheck/iimport.go b/src/cmd/compile/internal/typecheck/iimport.go
index a7339903fc..ec4057a8d0 100644
--- a/src/cmd/compile/internal/typecheck/iimport.go
+++ b/src/cmd/compile/internal/typecheck/iimport.go
@@ -821,7 +821,7 @@ func (r *importReader) typ1() *types.Type {
}
return n.Type()
- case instType:
+ case instanceType:
if r.p.exportVersion < iexportVersionGenerics {
base.Fatalf("unexpected instantiation type")
}