golang/src/go/doc/testdata
Keith Randall a11cd6f69a go/doc: recognize methods on generic types as Funcs
When writing markdown for godoc, we can reference a method M of
a type T as [T.M]. This doesn't currently work for methods on generic
types because the declaration of the type parameter gets in the way.
(You'd have to write [T[P].M] and that doesn't parse, and even if it
did you'd have to spell "P" correctly.)

Get rid of the type parameter when building the list of Funcs so
[T.M] works in godoc if T is generic.

Change-Id: I8ef5264124a944967df3ce20ddd40a2447ff4187
Reviewed-on: https://go-review.googlesource.com/c/go/+/449236
Reviewed-by: Keith Randall <khr@google.com>
Reviewed-by: Robert Griesemer <gri@google.com>
Run-TryBot: Keith Randall <khr@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
2022-11-10 06:33:18 +00:00
..
examples go/doc: remove unused top-level declarations from playable example 2022-05-10 23:13:45 +00:00
pkgdoc go/doc: recognize methods on generic types as Funcs 2022-11-10 06:33:18 +00:00
a.0.golden
a.1.golden
a.2.golden
a0.go
a1.go
b.0.golden go/doc: mark comparable predeclared 2022-02-11 16:05:02 +00:00
b.1.golden go/doc: mark comparable predeclared 2022-02-11 16:05:02 +00:00
b.2.golden go/doc: mark comparable predeclared 2022-02-11 16:05:02 +00:00
b.go go/doc: mark comparable predeclared 2022-02-11 16:05:02 +00:00
benchmark.go all: use time.Since instead of time.Now().Sub 2022-10-02 02:28:27 +00:00
blank.0.golden Revert "go/printer: forbid empty line before first comment in block" 2017-12-01 01:12:26 +00:00
blank.1.golden go/doc: fix constant type propagation 2017-10-09 18:01:14 +00:00
blank.2.golden Revert "go/printer: forbid empty line before first comment in block" 2017-12-01 01:12:26 +00:00
blank.go go/doc: fix constant type propagation 2017-10-09 18:01:14 +00:00
bugpara.0.golden
bugpara.1.golden
bugpara.2.golden
bugpara.go go/doc: add NewFromFiles with support for classifying examples 2019-11-12 00:14:09 +00:00
c.0.golden
c.1.golden
c.2.golden
c.go
d.0.golden
d.1.golden
d.2.golden
d1.go
d2.go
e.0.golden
e.1.golden
e.2.golden
e.go
error1.0.golden
error1.1.golden
error1.2.golden
error1.go
error2.0.golden
error2.1.golden
error2.2.golden
error2.go
example.go all: use time.Since instead of time.Now().Sub 2022-10-02 02:28:27 +00:00
f.0.golden
f.1.golden
f.2.golden
f.go
g.0.golden go/doc: replace unexported values with underscore if necessary 2018-02-27 16:29:17 +00:00
g.1.golden go/doc: replace unexported values with underscore if necessary 2018-02-27 16:29:17 +00:00
g.2.golden go/doc: replace unexported values with underscore if necessary 2018-02-27 16:29:17 +00:00
g.go go/doc: replace unexported values with underscore if necessary 2018-02-27 16:29:17 +00:00
generics.0.golden go/doc: don't treat functions returning type parameters as constructors 2021-11-10 18:06:32 +00:00
generics.1.golden go/doc: don't treat functions returning type parameters as constructors 2021-11-10 18:06:32 +00:00
generics.2.golden go/doc: don't treat functions returning type parameters as constructors 2021-11-10 18:06:32 +00:00
generics.go go/doc: don't treat functions returning type parameters as constructors 2021-11-10 18:06:32 +00:00
issue12839.0.golden go/doc: tune factory method association logic 2018-12-04 17:57:55 +00:00
issue12839.1.golden go/doc: tune factory method association logic 2018-12-04 17:57:55 +00:00
issue12839.2.golden go/doc: tune factory method association logic 2018-12-04 17:57:55 +00:00
issue12839.go go/doc: tune factory method association logic 2018-12-04 17:57:55 +00:00
issue13742.0.golden
issue13742.1.golden
issue13742.2.golden
issue13742.go
issue16153.0.golden go/doc: fix constant type propagation 2017-10-09 18:01:14 +00:00
issue16153.1.golden go/doc: fix constant type propagation 2017-10-09 18:01:14 +00:00
issue16153.2.golden go/doc: fix constant type propagation 2017-10-09 18:01:14 +00:00
issue16153.go go/doc: fix constant type propagation 2017-10-09 18:01:14 +00:00
issue17788.0.golden
issue17788.1.golden
issue17788.2.golden
issue17788.go
issue22856.0.golden go/doc: classify function returning slice or array of T as constructor 2018-06-12 16:37:37 +00:00
issue22856.1.golden go/doc: classify function returning slice or array of T as constructor 2018-06-12 16:37:37 +00:00
issue22856.2.golden go/doc: classify function returning slice or array of T as constructor 2018-06-12 16:37:37 +00:00
issue22856.go go/doc: classify function returning slice or array of T as constructor 2018-06-12 16:37:37 +00:00
predeclared.0.golden
predeclared.1.golden
predeclared.2.golden
predeclared.go
template.txt
testing.0.golden all: gofmt -w -r 'interface{} -> any' src 2021-12-13 18:45:54 +00:00
testing.1.golden all: gofmt -w -r 'interface{} -> any' src 2021-12-13 18:45:54 +00:00
testing.2.golden all: gofmt -w -r 'interface{} -> any' src 2021-12-13 18:45:54 +00:00
testing.go all: use time.Since instead of time.Now().Sub 2022-10-02 02:28:27 +00:00