Pure-D / serve-d

D LSP server (dlang language server protocol server)
MIT License
200 stars 48 forks source link

Support finding usage of types #291

Open WebFreak001 opened 1 year ago

WebFreak001 commented 1 year ago

This probably improves massively in quality when #293 is implemented

should find all variable assignments, possibly also of type auto, e.g.

struct Foo // search for usage of `Foo`
{
}

//  v this should of course also be included
Foo foo()
{
}

void main()
{
    auto v = foo();
    //   ^ this is interesting
}

This can be used to enhance the accuracy of find references and implement finding members of structs and classes accurately.