lsif-go icon indicating copy to clipboard operation
lsif-go copied to clipboard

☂️ Support for generics

Open varungandhi-src opened this issue 3 years ago • 2 comments

Go 1.18 with generics will be released this month (March 2022). We need to add support for generics (e.g. Go to Definition for type parameters in type signatures) so that people can continue using precise code intel when they bump their toolchain version. I'm not entirely sure how much work this will require; if it needs to be broken up, this can be used as an umbrella issue with various sub-issues organized in a TODO list (with - [ ]).

varungandhi-src avatar Mar 03 '22 18:03 varungandhi-src

For my own curiosity, I had a look at how our current grouping n such applies to generics, and it seems itll require a bit of work.

the types.Object for a type param is also of type *types.TypeName, but building of the identifying string doesn't seem to be clash-free, so we'd need some other information specifically for type params

image

Strum355 avatar Mar 22 '22 14:03 Strum355

Related investigation: https://github.com/sourcegraph/lsif-go/issues/240

DaedalusG avatar Jul 08 '22 07:07 DaedalusG