We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3684b17 commit 688c982Copy full SHA for 688c982
crates/hir-def/src/test_db.rs
@@ -273,8 +273,8 @@ impl TestDB {
273
let editioned_file_id_wrapper =
274
base_db::EditionedFileId::new(db.as_dyn_database(), position.file_id);
275
276
- let root = db.parse(editioned_file_id_wrapper);
277
- let scope_iter = algo::ancestors_at_offset(&root.syntax_node(), position.offset)
+ let root_syntax_node = db.parse(editioned_file_id_wrapper).syntax_node();
+ let scope_iter = algo::ancestors_at_offset(&root_syntax_node, position.offset)
278
.filter_map(|node| {
279
let block = ast::BlockExpr::cast(node)?;
280
let expr = ast::Expr::from(block);
0 commit comments