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> |
||
|---|---|---|
| .. | ||
| data | ||
| a.go | ||
| a.go.golden | ||
| a2.go | ||
| a2.go.golden | ||
| a3.go | ||
| a3.go.golden | ||
| a4.go | ||
| a4.go.golden | ||
| fill_struct.go | ||
| fill_struct.go.golden | ||
| fill_struct_anon.go | ||
| fill_struct_anon.go.golden | ||
| fill_struct_nested.go | ||
| fill_struct_nested.go.golden | ||
| fill_struct_package.go | ||
| fill_struct_package.go.golden | ||
| fill_struct_partial.go | ||
| fill_struct_partial.go.golden | ||
| fill_struct_spaces.go | ||
| fill_struct_spaces.go.golden | ||
| fill_struct_unsafe.go | ||
| fill_struct_unsafe.go.golden | ||
| typeparams.go | ||
| typeparams.go.golden | ||