aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ide_api/src/goto_type_definition.rs
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2019-11-20 10:09:21 +0000
committerAleksey Kladov <[email protected]>2019-11-20 10:09:21 +0000
commit51baaf298d4ac56036062786bf070aeab7ab8e79 (patch)
treebd923b623ffe43df04ef00e1f0662c00c0d919d1 /crates/ra_ide_api/src/goto_type_definition.rs
parentfa50b16cb2309c0c4fcb4e90378993a1f3d2ffb6 (diff)
Rename with_ast -> with_value
Diffstat (limited to 'crates/ra_ide_api/src/goto_type_definition.rs')
-rw-r--r--crates/ra_ide_api/src/goto_type_definition.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_ide_api/src/goto_type_definition.rs b/crates/ra_ide_api/src/goto_type_definition.rs
index 6aeeefa1f..28a83a3e2 100644
--- a/crates/ra_ide_api/src/goto_type_definition.rs
+++ b/crates/ra_ide_api/src/goto_type_definition.rs
@@ -22,7 +22,7 @@ pub(crate) fn goto_type_definition(
22 .find(|n| ast::Expr::cast(n.clone()).is_some() || ast::Pat::cast(n.clone()).is_some()) 22 .find(|n| ast::Expr::cast(n.clone()).is_some() || ast::Pat::cast(n.clone()).is_some())
23 })?; 23 })?;
24 24
25 let analyzer = hir::SourceAnalyzer::new(db, token.with_ast(&node), None); 25 let analyzer = hir::SourceAnalyzer::new(db, token.with_value(&node), None);
26 26
27 let ty: hir::Ty = if let Some(ty) = 27 let ty: hir::Ty = if let Some(ty) =
28 ast::Expr::cast(node.clone()).and_then(|e| analyzer.type_of(db, &e)) 28 ast::Expr::cast(node.clone()).and_then(|e| analyzer.type_of(db, &e))