aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_syntax
diff options
context:
space:
mode:
authorDavid Lattimore <[email protected]>2020-07-26 08:43:47 +0100
committerDavid Lattimore <[email protected]>2020-07-26 12:58:35 +0100
commitb3ca36b2d9fe5f2ef27cc19ced232e3168b77a38 (patch)
treed7dce0768767f683eae0335a5c27e5cdcf4d7312 /crates/ra_syntax
parentbb587fae1dc169aca2e587bc7876611852186dd5 (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_syntax')
0 files changed, 0 insertions, 0 deletions