aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_assists/src/assist_ctx.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_assists/src/assist_ctx.rs')
-rw-r--r--crates/ra_assists/src/assist_ctx.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_assists/src/assist_ctx.rs b/crates/ra_assists/src/assist_ctx.rs
index 20d33fb16..5f85f20e2 100644
--- a/crates/ra_assists/src/assist_ctx.rs
+++ b/crates/ra_assists/src/assist_ctx.rs
@@ -115,7 +115,7 @@ impl<'a, DB: HirDatabase> AssistCtx<'a, DB> {
115 self.token_at_offset().find(|it| it.kind() == kind) 115 self.token_at_offset().find(|it| it.kind() == kind)
116 } 116 }
117 117
118 pub(crate) fn node_at_offset<N: AstNode>(&self) -> Option<N> { 118 pub(crate) fn find_node_at_offset<N: AstNode>(&self) -> Option<N> {
119 find_node_at_offset(self.source_file.syntax(), self.frange.range.start()) 119 find_node_at_offset(self.source_file.syntax(), self.frange.range.start())
120 } 120 }
121 pub(crate) fn covering_element(&self) -> SyntaxElement { 121 pub(crate) fn covering_element(&self) -> SyntaxElement {