aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/vendor/github.com
diff options
context:
space:
mode:
authorRobert Findley <rfindley@google.com>2021-10-29 17:41:41 -0400
committerRobert Findley <rfindley@google.com>2021-11-04 14:54:46 +0000
commit00d6d2037ee1bf4b6959219120b79b7c01244b02 (patch)
treedf2d5504710ef46ce7b3ddc597cf3db3ccb16e89 /src/cmd/vendor/github.com
parent901bf291bc90819cb6dad76064475cf9ecbc9651 (diff)
downloadgo-00d6d2037ee1bf4b6959219120b79b7c01244b02.tar.xz
cmd/doc, go/doc: add basic support for generic code
Update cmd/doc and go/doc for the generics, by adding handling for type parameters and the new embedded interface elements. Specifically: - Format type parameters when summarizing type and function nodes. - Find the origin type name for instantiation expressions, so that methods are associated with generic type declarations. - Generalize the handling of embedding 'error' in interfaces to arbitrary predeclared types. - Keep embedded type literals. - Update filtering to descend into embedded type literals. Also add "any" to the list of predeclared types. Updates #49210 Change-Id: I6ea82869f19c3cdbc3c842f01581c8fc7e1c2ee7 Reviewed-on: https://go-review.googlesource.com/c/go/+/359778 Trust: Robert Findley <rfindley@google.com> Run-TryBot: Robert Findley <rfindley@google.com> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Robert Griesemer <gri@golang.org>
Diffstat (limited to 'src/cmd/vendor/github.com')
0 files changed, 0 insertions, 0 deletions