mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-02 06:41:48 +00:00
use Source for Function
This commit is contained in:
parent
36865adcb9
commit
4f94af3c4a
10 changed files with 30 additions and 28 deletions
|
@ -71,7 +71,7 @@ impl<'a, 'b> ExprValidator<'a, 'b> {
|
|||
return;
|
||||
}
|
||||
let source_map = self.func.body_source_map(db);
|
||||
let file_id = self.func.source(db).0;
|
||||
let file_id = self.func.source(db).file_id;
|
||||
let source_file = db.parse(file_id.original_file(db)).tree;
|
||||
if let Some(field_list_node) = source_map
|
||||
.expr_syntax(id)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue