go/internal/lsp/testdata
Robert Findley 0cffec9e30 go/internal/gcimporter: update iimport.go to support type parameters
This CL pulls in the latest changes from go/internal/gcimporter, while
avoiding breaking the build on older go versions. To help maintain
compatibility with older Go versions while minimizing the diff with the
standard library importer, the internal/typeparams package was
significantly expanded.

I decided to use type aliases in the internal/typeparams package on Go
version >= go1.18, and placeholder types on Go version < go1.18. This
reduces the amount of copying needed in the APIs, though it might not be
the best decision if we ever decide to export this package.
Documentation was also updated to be more concise and specific to the Go
version being used.

In order to actually fix the x/tools Trybot for packages using generics
in the standard library, we need to switch from the 'typeparams' build
constraint to the 'go1.18' build constraint. This means if we make any
additional API changes in go/types we'll have to submit them with a
broken x/tools Trybot and then immediately fix the x/tools build.

Change-Id: Ifa0b1c37b89dc549ee295fa3a959f03deda86e56
Reviewed-on: https://go-review.googlesource.com/c/tools/+/349949
Trust: Robert Findley <rfindley@google.com>
Run-TryBot: Robert Findley <rfindley@google.com>
gopls-CI: kokoro <noreply+kokoro@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Robert Griesemer <gri@golang.org>
2021-09-15 00:13:36 +00:00
..
%percent
addimport internal/lsp: add list_known_packages and add_import commands 2021-05-23 03:57:00 +00:00
address lsp/completion: reorganize how we track candidate type mods 2021-06-09 15:58:13 +00:00
analyzer tools: make printf analysis have more helpful output 2021-05-21 23:19:31 +00:00
anon
append lsp/completion: reorganize how we track candidate type mods 2021-06-09 15:58:13 +00:00
arraytype lsp/completion: offer candidates converting arrays to slices 2021-04-22 04:15:51 +00:00
assign internal/lsp/source: omit assign stmt LHS in RHS completion 2020-12-07 20:43:33 +00:00
bad internal/typesinternal: use Go 1.16 metadata for go/types errors 2020-12-07 17:42:14 +00:00
badstmt
bar
basiclit internal/lsp: add support for hovering runes 2021-09-14 22:22:34 +00:00
baz
builtins internal/lsp/completion: fix untyped int type inference 2021-02-05 20:20:24 +00:00
callhierarchy internal/lsp: include function literals in outgoing call hierarchy 2021-06-01 22:58:04 +00:00
casesensitive
cast
cgo internal/lsp: add support for hovering runes 2021-09-14 22:22:34 +00:00
cgoimport internal/lsp: add support for hovering runes 2021-09-14 22:22:34 +00:00
channel
codelens
comment_completion
complit lsp/completion: reorganize how we track candidate type mods 2021-06-09 15:58:13 +00:00
constant
danglingstmt
deep lsp/completion: reorganize how we track candidate type mods 2021-06-09 15:58:13 +00:00
errors
extract internal/lsp: add extract to method code action 2021-07-23 18:08:39 +00:00
fieldlist
fillstruct gopls, internal/lsp: support fillstruct for partially-filled structs 2020-11-30 20:22:45 +00:00
folding internal/lsp: fix folding range for block comments 2021-06-07 15:13:07 +00:00
foo
format
func_rank
funcsig
funcvalue
fuzzymatch
generate
generated
godef internal/lsp/testdata: update inferred.go to use hoverdef 2021-09-14 23:55:15 +00:00
good internal/lsp/source: make it an error to rename embedded fields 2021-01-26 13:52:46 +00:00
highlights
implementation
importedcomplit
imports
index internal/lsp/completion: fix untyped int type inference 2021-02-05 20:20:24 +00:00
interfacerank
keywords internal/lsp: fix some incorrect spelling 2020-11-24 11:59:21 +00:00
labels
links internal/lsp: add ?utm_source=gopls to links to pkg.go.dev 2020-11-16 00:15:58 +00:00
maps lsp/completion: reorganize how we track candidate type mods 2021-06-09 15:58:13 +00:00
multireturn lsp/completion: fix variadic param candidate ordering edge case 2021-06-01 17:02:03 +00:00
nested_complit
nodisk
noparse
noparse_format
printf
rank lsp/completion: reorganize how we track candidate type mods 2021-06-09 15:58:13 +00:00
references internal/lsp: find references for ident before selector 2021-08-02 19:06:04 +00:00
rename internal/lsp: use LookupParent for finding scope 2021-08-11 21:39:32 +00:00
selector
semantic internal/lsp: produce "method" in place of "member" as per the spec 2021-09-13 21:01:54 +00:00
signature internal/lsp: skip signature help within a string literal 2021-07-26 16:44:13 +00:00
snippets lsp/completion: don't offer untyped conversions 2021-06-04 17:45:44 +00:00
statements internal/lsp: add snippet completion for t.Fatal errs 2021-03-15 21:39:02 +00:00
suggestedfix
symbols
testy
typdef internal/lsp/source: support typeDefinition for function/method's return values 2021-05-06 03:15:21 +00:00
typeassert lsp/completion: reorganize how we track candidate type mods 2021-06-09 15:58:13 +00:00
typeerrors
typemods lsp/completion: support completing to Elem() types 2021-06-09 15:58:30 +00:00
types
undeclared
unimported
unresolved
unsafe internal/lsp: update unsafe completion test for upcoming spec changes 2021-04-22 02:57:26 +00:00
variadic
workspacesymbol internal/lsp: precompute workspace symbols 2021-08-09 20:20:17 +00:00
summary.txt.golden internal/lsp: use LookupParent for finding scope 2021-08-11 21:39:32 +00:00
summary_go1.18.txt.golden go/internal/gcimporter: update iimport.go to support type parameters 2021-09-15 00:13:36 +00:00