Stream: t-compiler/rust-analyzer

Topic: Name{Ref}Class::classify_self

Lukas Wirth (Jan 12 2021 at 21:19, on Zulip):

Wanted to look into enabling hover hints for self and was wondering whether it would make sense to add a Name{Ref}Class::classify_self function, the downside here is that the function for NameRefClass would have to accept a SyntaxToken since there is no special self ast node(NameClass doesn't have that problem since there is a SelfParam node).
This would also allow us to reimplement reference search for self(I think at least) the same way it works for names and lifetimes(currently the search is special cased in the reference module).

Lukas Wirth (Jan 12 2021 at 23:10, on Zulip):

Well I went ahead and tried it out to see how things will change and it looked pretty good in my eyes so I went aehead and just finished it.

Last update: Jul 27 2021 at 21:30UTC