diff options
author | David Lattimore <[email protected]> | 2020-07-26 08:43:47 +0100 |
---|---|---|
committer | David Lattimore <[email protected]> | 2020-07-26 12:58:35 +0100 |
commit | b3ca36b2d9fe5f2ef27cc19ced232e3168b77a38 (patch) | |
tree | d7dce0768767f683eae0335a5c27e5cdcf4d7312 /crates/ra_fmt | |
parent | bb587fae1dc169aca2e587bc7876611852186dd5 (diff) |
SSR: Fix for path resolution of locals
It seems that Semantics::scope, if given a statement node, won't resolve
locals that were defined in the current scope, only in parent scopes.
Not sure if this is intended / expected behavior, but we work around it
for now by finding another nearby node to use as the scope (e.g. the
expression inside the EXPR_STMT).
Diffstat (limited to 'crates/ra_fmt')
0 files changed, 0 insertions, 0 deletions