mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 12:29:21 +00:00
fold ScopeWithSyntax into SourceAnalyzer
This commit is contained in:
parent
30481808fb
commit
f4a94e74bc
7 changed files with 159 additions and 193 deletions
|
@ -27,7 +27,7 @@ pub(crate) fn inline_local_varialbe(mut ctx: AssistCtx<impl HirDatabase>) -> Opt
|
|||
let_stmt.syntax().range()
|
||||
};
|
||||
let analyzer = hir::SourceAnalyzer::new(ctx.db, ctx.frange.file_id, bind_pat.syntax(), None);
|
||||
let refs = analyzer.find_all_refs(bind_pat)?;
|
||||
let refs = analyzer.find_all_refs(bind_pat);
|
||||
|
||||
let mut wrap_in_parens = vec![true; refs.len()];
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue