mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
cmd/compile: rename gc.exportname to types.IsExported
gofmt -r 'exportname(s) -> types.IsExported(s)' Passes toolstash-check. Change-Id: I6b428bd039c135be66d8b81c325d4e08bae69f24 Reviewed-on: https://go-review.googlesource.com/105938 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> Run-TryBot: Matthew Dempsky <mdempsky@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org>
This commit is contained in:
parent
c5dd254393
commit
71bac7efe4
11 changed files with 44 additions and 42 deletions
|
|
@ -183,7 +183,7 @@ func addptabs() {
|
|||
if n.Op != ONAME {
|
||||
continue
|
||||
}
|
||||
if !exportname(s.Name) {
|
||||
if !types.IsExported(s.Name) {
|
||||
continue
|
||||
}
|
||||
if s.Pkg.Name != "main" {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue