mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
cmd/compile/internal/noder: reuse package scope's names
Change-Id: I2cc62efb7bb3b47f1ee3ed0bb77e35c47e2df9a1
GitHub-Last-Rev: 106cb494de
GitHub-Pull-Request: golang/go#54718
Reviewed-on: https://go-review.googlesource.com/c/go/+/426297
Run-TryBot: Keith Randall <khr@golang.org>
Reviewed-by: Keith Randall <khr@google.com>
Reviewed-by: Keith Randall <khr@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Auto-Submit: Keith Randall <khr@golang.org>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
This commit is contained in:
parent
ee0e40aaef
commit
2f103873c5
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue