diff options
author | Florian Diebold <[email protected]> | 2019-01-19 18:47:56 +0000 |
---|---|---|
committer | Florian Diebold <[email protected]> | 2019-01-30 20:23:50 +0000 |
commit | 65864d85f992300bad3913438a542af1bd736a24 (patch) | |
tree | c2030da2bcd55fc1033a2c0602b7a9349c2dd702 /crates/ra_hir/src/query_definitions.rs | |
parent | c65e6cdcb3d603ce7c0943785f7140662022c54a (diff) |
Rename FnScopes -> ExprScopes
The reason for this is that it describes scopes for any body expression, not
just that of a function. It did not actually refer to functions at all anymore.
Diffstat (limited to 'crates/ra_hir/src/query_definitions.rs')
-rw-r--r-- | crates/ra_hir/src/query_definitions.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/ra_hir/src/query_definitions.rs b/crates/ra_hir/src/query_definitions.rs index 6724649e1..1b61d449e 100644 --- a/crates/ra_hir/src/query_definitions.rs +++ b/crates/ra_hir/src/query_definitions.rs | |||
@@ -4,13 +4,13 @@ use ra_syntax::{SyntaxNode, TreeArc}; | |||
4 | 4 | ||
5 | use crate::{ | 5 | use crate::{ |
6 | SourceFileItems, SourceItemId, HirFileId, | 6 | SourceFileItems, SourceItemId, HirFileId, |
7 | Function, FnScopes, | 7 | Function, ExprScopes, |
8 | db::HirDatabase, | 8 | db::HirDatabase, |
9 | }; | 9 | }; |
10 | 10 | ||
11 | pub(super) fn fn_scopes(db: &impl HirDatabase, func: Function) -> Arc<FnScopes> { | 11 | pub(super) fn expr_scopes(db: &impl HirDatabase, func: Function) -> Arc<ExprScopes> { |
12 | let body = db.body_hir(func); | 12 | let body = db.body_hir(func); |
13 | let res = FnScopes::new(body); | 13 | let res = ExprScopes::new(body); |
14 | Arc::new(res) | 14 | Arc::new(res) |
15 | } | 15 | } |
16 | 16 | ||