mirror of https://github.com/golang/go.git
The code that generates a name for a struct type, and a default value for a struct field, now supports the case where either contains a type parameter. Also: - use type-checker's name for the struct type unless it is a bare struct. - populateValue: return *new(T) for a type parameter. - various minor cleanups. - various TODO comments for clarifications. - fuzzy.FindBestMatch: use strings not identifiers. Remove Find prefix (also FindMatchingIdentifiers). Fixes golang/go#54836 Change-Id: I4f6132598b4ac7e72ea1405e4a14d6a23c1eeeaa Reviewed-on: https://go-review.googlesource.com/c/tools/+/436777 Auto-Submit: Alan Donovan <adonovan@google.com> Run-TryBot: Alan Donovan <adonovan@google.com> gopls-CI: kokoro <noreply+kokoro@google.com> Reviewed-by: Robert Findley <rfindley@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> |
||
|---|---|---|
| .. | ||
| analysis.go | ||