diff options
author | Aleksey Kladov <[email protected]> | 2021-01-30 15:19:21 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2021-03-16 13:10:49 +0000 |
commit | f5a81ec4683613bd62624811733345d627f2127b (patch) | |
tree | 54490888591ddc005d510695787308b78739ef05 /crates/ide_ssr | |
parent | 62ec04bbd53ba50e21a7b8f23d46958d322640eb (diff) |
Upgrade rowan
Notably, new rowan comes with support for mutable syntax trees.
Diffstat (limited to 'crates/ide_ssr')
-rw-r--r-- | crates/ide_ssr/src/resolving.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ide_ssr/src/resolving.rs b/crates/ide_ssr/src/resolving.rs index af94c7bb1..dc7835473 100644 --- a/crates/ide_ssr/src/resolving.rs +++ b/crates/ide_ssr/src/resolving.rs | |||
@@ -195,7 +195,7 @@ impl<'db> ResolutionScope<'db> { | |||
195 | .syntax() | 195 | .syntax() |
196 | .token_at_offset(resolve_context.offset) | 196 | .token_at_offset(resolve_context.offset) |
197 | .left_biased() | 197 | .left_biased() |
198 | .map(|token| token.parent()) | 198 | .and_then(|token| token.parent()) |
199 | .unwrap_or_else(|| file.syntax().clone()); | 199 | .unwrap_or_else(|| file.syntax().clone()); |
200 | let node = pick_node_for_resolution(node); | 200 | let node = pick_node_for_resolution(node); |
201 | let scope = sema.scope(&node); | 201 | let scope = sema.scope(&node); |