diff options
author | Aleksey Kladov <[email protected]> | 2019-04-13 08:49:01 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2019-04-13 08:49:01 +0100 |
commit | f4a94e74bcd6c8f9275a57a775e64314af1878da (patch) | |
tree | d10b8da727d6b581a78d79e660fe05218e5b80d3 /crates/ra_assists | |
parent | 30481808fbfea109f324dfaf93daaaebacc75333 (diff) |
fold ScopeWithSyntax into SourceAnalyzer
Diffstat (limited to 'crates/ra_assists')
-rw-r--r-- | crates/ra_assists/src/inline_local_variable.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_assists/src/inline_local_variable.rs b/crates/ra_assists/src/inline_local_variable.rs index 9493acec9..e0479ef13 100644 --- a/crates/ra_assists/src/inline_local_variable.rs +++ b/crates/ra_assists/src/inline_local_variable.rs | |||
@@ -27,7 +27,7 @@ pub(crate) fn inline_local_varialbe(mut ctx: AssistCtx<impl HirDatabase>) -> Opt | |||
27 | let_stmt.syntax().range() | 27 | let_stmt.syntax().range() |
28 | }; | 28 | }; |
29 | let analyzer = hir::SourceAnalyzer::new(ctx.db, ctx.frange.file_id, bind_pat.syntax(), None); | 29 | let analyzer = hir::SourceAnalyzer::new(ctx.db, ctx.frange.file_id, bind_pat.syntax(), None); |
30 | let refs = analyzer.find_all_refs(bind_pat)?; | 30 | let refs = analyzer.find_all_refs(bind_pat); |
31 | 31 | ||
32 | let mut wrap_in_parens = vec![true; refs.len()]; | 32 | let mut wrap_in_parens = vec![true; refs.len()]; |
33 | 33 | ||