mirror of
https://github.com/golang/go
synced 2024-11-18 22:14:56 -07:00
d0542c01b0
In api/*.txt, interface declarations are represented with lines like: pkg container/heap, type Interface interface { Len, Less, Pop, Push, Swap } or, when they have no exported methods: pkg go/ast, type Expr interface, unexported methods The latter form confuses mkstdlib into thinking that it's a method because of the extra comma, and then it skips the interface entirely. Running this program is a matter of seconds once per release, so rather than trying to fix the optimization, just remove it. The parsing logic doesn't care about the extra lines. And the corresponding change to the copy in lsp/testdata/unimported. Updates golang/go#34199 Change-Id: Ic34b8a47537608401e4ef6683617d797f9f50f8a Reviewed-on: https://go-review.googlesource.com/c/tools/+/194568 Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org> |
||
---|---|---|
.. | ||
testdata/mod | ||
fix_test.go | ||
fix.go | ||
imports_test.go | ||
imports.go | ||
mkindex.go | ||
mkstdlib.go | ||
mod_112_test.go | ||
mod_cache_test.go | ||
mod_cache.go | ||
mod_test.go | ||
mod.go | ||
proxy_112_test.go | ||
proxy_113_test.go | ||
sortimports.go | ||
zstdlib.go |