mirror of
https://github.com/golang/go
synced 2024-11-05 15:06:09 -07:00
go/internal/gcimporter: support Go versions < 1.11
Fixes golang/go#34689 Change-Id: I7ab6c5a00c24a188b2dbd75160091cf6c834bd6a Reviewed-on: https://go-review.googlesource.com/c/tools/+/199037 Run-TryBot: Rebecca Stambler <rstambler@golang.org> Reviewed-by: Robert Griesemer <gri@golang.org>
This commit is contained in:
parent
72853e10c5
commit
b22818684c
@ -6,8 +6,6 @@
|
||||
// This file was derived from $GOROOT/src/cmd/compile/internal/gc/iexport.go;
|
||||
// see that file for specification of the format.
|
||||
|
||||
// +build go1.11
|
||||
|
||||
package gcimporter
|
||||
|
||||
import (
|
||||
@ -399,7 +397,7 @@ func (w *exportWriter) doTyp(t types.Type, pkg *types.Package) {
|
||||
w.pos(f.Pos())
|
||||
w.string(f.Name())
|
||||
w.typ(f.Type(), pkg)
|
||||
w.bool(f.Embedded())
|
||||
w.bool(f.Anonymous())
|
||||
w.string(t.Tag(i)) // note (or tag)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user