mirror of https://github.com/golang/go.git
flattenImports used to traverse the transitive closure of all imports by recursively visiting all imported packages. This is a lot of redundant work, because flattening happens for every package, the recursion is not necessary and this change removes the recursion. Change-Id: Id5a1b3b15ef3ce8e0fc6c945b5484b3dd06bd6b6 Reviewed-on: https://go-review.googlesource.com/c/tools/+/450755 Run-TryBot: Matthew Dempsky <mdempsky@google.com> gopls-CI: kokoro <noreply+kokoro@google.com> Reviewed-by: Florian Zenker <floriank@google.com> Reviewed-by: Matthew Dempsky <mdempsky@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> |
||
|---|---|---|
| .. | ||
| testdata | ||
| bexport.go | ||
| bexport_test.go | ||
| bimport.go | ||
| exportdata.go | ||
| gcimporter.go | ||
| gcimporter_test.go | ||
| iexport.go | ||
| iexport_common_test.go | ||
| iexport_go118_test.go | ||
| iexport_test.go | ||
| iimport.go | ||
| israce_test.go | ||
| newInterface10.go | ||
| newInterface11.go | ||
| shallow_test.go | ||
| stdlib_test.go | ||
| support_go117.go | ||
| support_go118.go | ||
| unified_no.go | ||
| unified_yes.go | ||
| ureader_no.go | ||
| ureader_yes.go | ||