Stream: t-compiler/rust-analyzer

Topic: Unresolved identifiers scope

ivan770 (Mar 27 2021 at 17:00, on Zulip):

Is it ok to add an additional scope for, that relies on ExprId rather than on PatId, as we don't have a pattern to reference yet?

ivan770 (Mar 27 2021 at 17:00, on Zulip):

Something like StmtScope

Florian Diebold (Mar 27 2021 at 17:02, on Zulip):

I'm not sure it makes sense to model this as a scope at all?

ivan770 (Mar 27 2021 at 17:18, on Zulip):

In that case I'll need to iterate over all calls in current body somewhere in ide_completion, but that looks kinda hacky

ivan770 (Mar 27 2021 at 17:24, on Zulip):

Hmm, on the other hand, having a scopes consisting only of unresolved identifiers doesn't seem like a good idea too

Last update: Jul 28 2021 at 04:45UTC