tools/internal/typeparams
Robert Findley 84f205d75e internal/typeparams/example: start adding a guide to generics for tools
This CL begins adding a guide for the new APIs introduced with Go 1.18
to support writing tools that understand generic Go code.

For now I've added a summary of the new APIs, an initial example, and
some discussion of the typeparams package. Subsequent CLs will add more
examples, and polish.

Updates golang/go#50447

Change-Id: I4ed8d7a2f43e748374d14f3f515673d69ab2d5a0
Reviewed-on: https://go-review.googlesource.com/c/tools/+/377834
Trust: Robert Findley <rfindley@google.com>
Run-TryBot: Robert Findley <rfindley@google.com>
Trust: Dominik Honnef <dominik@honnef.co>
gopls-CI: kokoro <noreply+kokoro@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Suzy Mueller <suzmue@golang.org>
2022-01-22 21:07:13 +00:00
..
example internal/typeparams/example: start adding a guide to generics for tools 2022-01-22 21:07:13 +00:00
genericfeatures internal/typeparams: guard against generics in stdlib tests 2021-10-25 20:36:35 +00:00
common.go internal/typeparams/example: start adding a guide to generics for tools 2022-01-22 21:07:13 +00:00
common_test.go internal/typeparams: simplify the IndexExpr API 2022-01-19 20:29:28 +00:00
copytermlist.go internal/typeparams: copy the term list algorithm from go/types 2021-10-14 22:21:32 +00:00
enabled_go117.go Revert "internal/typeparams: hide go1.18 API usage behind a build constraint" 2021-09-28 23:30:19 +00:00
enabled_go118.go Revert "internal/typeparams: hide go1.18 API usage behind a build constraint" 2021-09-28 23:30:19 +00:00
normalize.go go/types/typeutil: add support for mapping generic types 2021-12-02 03:14:37 +00:00
normalize_test.go internal/typeparams: normalize the underlying constraint interface 2021-11-16 01:10:28 +00:00
termlist.go internal/typeparams: copy the term list algorithm from go/types 2021-10-14 22:21:32 +00:00
typeparams_go117.go internal/typeparams: simplify the IndexExpr API 2022-01-19 20:29:28 +00:00
typeparams_go118.go internal/typeparams: simplify the IndexExpr API 2022-01-19 20:29:28 +00:00
typeparams_test.go internal/typeparams: filter out API diffs related to types.Environment 2021-09-29 15:31:12 +00:00
typeterm.go internal/typeparams: copy the term list algorithm from go/types 2021-10-14 22:21:32 +00:00