mirror of https://github.com/golang/go.git
We do a lot of gymnastics to format var types, working around the lack of alias tracking in go/types. As part of this, we clone and qualify expressions. In this case, we were not qualifying identifiers that were contained within fields or field lists. Fix this by updating our expression traversal to include *ast.Field and *ast.FieldList. Fixes golang/go#50539 Change-Id: I6531c6a51aa402bd784778b8bedaa3dccee75af0 Reviewed-on: https://go-review.googlesource.com/c/tools/+/395678 Trust: Robert Findley <rfindley@google.com> Run-TryBot: Robert Findley <rfindley@google.com> Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com> gopls-CI: kokoro <noreply+kokoro@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> |
||
|---|---|---|
| .. | ||
| analysisinternal | ||
| apidiff | ||
| event | ||
| fakenet | ||
| fastwalk | ||
| gocommand | ||
| gopathwalk | ||
| imports | ||
| jsonrpc2 | ||
| jsonrpc2_v2 | ||
| lsp | ||
| memoize | ||
| packagesinternal | ||
| proxydir | ||
| span | ||
| stack | ||
| testenv | ||
| tool | ||
| typeparams | ||
| typesinternal | ||
| xcontext | ||