]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/compile: rename instType -> instanceType
authorDan Scales <danscales@google.com>
Mon, 20 Sep 2021 01:18:41 +0000 (18:18 -0700)
committerDan Scales <danscales@google.com>
Mon, 20 Sep 2021 16:09:39 +0000 (16:09 +0000)
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>

src/cmd/compile/internal/typecheck/iexport.go
src/cmd/compile/internal/typecheck/iimport.go

index def94085447e2e1b6d886c7fb1a006fe7dd68f96..bbdad09782ed5d2e03bc9e57e918ca5d0d47d158 100644 (file)
@@ -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
index a7339903fcdc6d4aaf7afbbeae5fc181b6a775ef..ec4057a8d0c38b593fa806c63d9ef384a39d32c6 100644 (file)
@@ -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")
                }