Skip to content

Commit

Permalink
completions/inference: infer polymorphic types in completions
Browse files Browse the repository at this point in the history
When using generic functions, the LSP now tries to infer an instantiation
based on the surroundings of the call expression. If successful, it improves
completions for parameters of generic functions. It shouldn't collide
with any pre-existing code paths.

Fixes golang/go#69754

Change-Id: Ic4552d1b988011f5b7e02d83f7938c65a23b61e0
GitHub-Last-Rev: 57eb2ac
GitHub-Pull-Request: #530
Reviewed-on: https://go-review.googlesource.com/c/tools/+/618675
LUCI-TryBot-Result: Go LUCI <[email protected]>
Reviewed-by: Robert Findley <[email protected]>
Reviewed-by: Alan Donovan <[email protected]>
Auto-Submit: Alan Donovan <[email protected]>
Commit-Queue: Alan Donovan <[email protected]>
  • Loading branch information
jacobzim-stl authored and gopherbot committed Nov 25, 2024
1 parent dcfb0b6 commit c622026
Show file tree
Hide file tree
Showing 6 changed files with 1,447 additions and 125 deletions.
Loading

0 comments on commit c622026

Please sign in to comment.