diff options
Diffstat (limited to 'crates/ra_hir/src/code_model_api.rs')
-rw-r--r-- | crates/ra_hir/src/code_model_api.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_hir/src/code_model_api.rs b/crates/ra_hir/src/code_model_api.rs index c59b7fbc5..9405aa8ad 100644 --- a/crates/ra_hir/src/code_model_api.rs +++ b/crates/ra_hir/src/code_model_api.rs | |||
@@ -396,7 +396,7 @@ pub struct Function { | |||
396 | pub(crate) id: FunctionId, | 396 | pub(crate) id: FunctionId, |
397 | } | 397 | } |
398 | 398 | ||
399 | pub use crate::code_model_impl::function::ScopeEntryWithSyntax; | 399 | pub use crate::expr::ScopeEntryWithSyntax; |
400 | 400 | ||
401 | /// The declared signature of a function. | 401 | /// The declared signature of a function. |
402 | #[derive(Debug, Clone, PartialEq, Eq)] | 402 | #[derive(Debug, Clone, PartialEq, Eq)] |
@@ -447,7 +447,7 @@ impl Function { | |||
447 | } | 447 | } |
448 | 448 | ||
449 | pub fn scopes(&self, db: &impl HirDatabase) -> ScopesWithSyntaxMapping { | 449 | pub fn scopes(&self, db: &impl HirDatabase) -> ScopesWithSyntaxMapping { |
450 | let scopes = db.fn_scopes(*self); | 450 | let scopes = db.expr_scopes(*self); |
451 | let syntax_mapping = db.body_syntax_mapping(*self); | 451 | let syntax_mapping = db.body_syntax_mapping(*self); |
452 | ScopesWithSyntaxMapping { | 452 | ScopesWithSyntaxMapping { |
453 | scopes, | 453 | scopes, |