1
0
mirror of https://github.com/golang/go synced 2024-11-17 13:14:56 -07:00

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>
This commit is contained in:
Dan Scales 2021-09-19 18:18:41 -07:00
parent 119213566a
commit a81b0dc6ee
2 changed files with 3 additions and 3 deletions

View File

@ -255,7 +255,7 @@ const (
structType structType
interfaceType interfaceType
typeParamType typeParamType
instType instanceType // Instantiation of a generic type
unionType unionType
) )
@ -893,7 +893,7 @@ func (w *exportWriter) doTyp(t *types.Type) {
if strings.Index(s.Name, "[") < 0 { if strings.Index(s.Name, "[") < 0 {
base.Fatalf("incorrect name for instantiated type") base.Fatalf("incorrect name for instantiated type")
} }
w.startType(instType) w.startType(instanceType)
w.pos(t.Pos()) w.pos(t.Pos())
// Export the type arguments for the instantiated type. The // Export the type arguments for the instantiated type. The
// instantiated type could be in a method header (e.g. "func (v // instantiated type could be in a method header (e.g. "func (v

View File

@ -821,7 +821,7 @@ func (r *importReader) typ1() *types.Type {
} }
return n.Type() return n.Type()
case instType: case instanceType:
if r.p.exportVersion < iexportVersionGenerics { if r.p.exportVersion < iexportVersionGenerics {
base.Fatalf("unexpected instantiation type") base.Fatalf("unexpected instantiation type")
} }