mirror of
https://github.com/golang/go
synced 2024-09-19 07:52:34 +00:00
cmd/compile/internal/noder: reuse package scope's names
This commit is contained in:
parent
a6219737e3
commit
106cb494de
|
@ -188,7 +188,7 @@ func writePkgStub(noders []*noder) string {
|
|||
scope := pkg.Scope()
|
||||
names := scope.Names()
|
||||
w.Len(len(names))
|
||||
for _, name := range scope.Names() {
|
||||
for _, name := range names {
|
||||
w.obj(scope.Lookup(name), nil)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue