diff options
author | Aleksey Kladov <[email protected]> | 2018-11-27 22:48:43 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2018-11-27 22:48:43 +0000 |
commit | 00df339c419fc75af6a939b75be8bef5b5a69732 (patch) | |
tree | c7304b26395e918a7e208647cac9356182cb53e0 /crates/ra_analysis/src/hir/query_definitions.rs | |
parent | 5e7f4202cf4d64f565d6d035cd2e854acfc336ab (diff) |
rename
Diffstat (limited to 'crates/ra_analysis/src/hir/query_definitions.rs')
-rw-r--r-- | crates/ra_analysis/src/hir/query_definitions.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/crates/ra_analysis/src/hir/query_definitions.rs b/crates/ra_analysis/src/hir/query_definitions.rs index e6bfbc6cf..53926cf16 100644 --- a/crates/ra_analysis/src/hir/query_definitions.rs +++ b/crates/ra_analysis/src/hir/query_definitions.rs | |||
@@ -12,7 +12,7 @@ use ra_syntax::{ | |||
12 | use crate::{ | 12 | use crate::{ |
13 | FileId, Cancelable, | 13 | FileId, Cancelable, |
14 | hir::{ | 14 | hir::{ |
15 | FileItems, FileItemId, | 15 | SourceFileItems, SourceFileItemId, |
16 | db::HirDatabase, | 16 | db::HirDatabase, |
17 | function::{FnId, FnScopes}, | 17 | function::{FnId, FnScopes}, |
18 | module::{ | 18 | module::{ |
@@ -37,10 +37,10 @@ pub(super) fn fn_scopes(db: &impl HirDatabase, fn_id: FnId) -> Arc<FnScopes> { | |||
37 | Arc::new(res) | 37 | Arc::new(res) |
38 | } | 38 | } |
39 | 39 | ||
40 | pub(super) fn file_items(db: &impl HirDatabase, file_id: FileId) -> Arc<FileItems> { | 40 | pub(super) fn file_items(db: &impl HirDatabase, file_id: FileId) -> Arc<SourceFileItems> { |
41 | let source_file = db.file_syntax(file_id); | 41 | let source_file = db.file_syntax(file_id); |
42 | let source_file = source_file.borrowed(); | 42 | let source_file = source_file.borrowed(); |
43 | let mut res = FileItems::default(); | 43 | let mut res = SourceFileItems::default(); |
44 | source_file | 44 | source_file |
45 | .syntax() | 45 | .syntax() |
46 | .descendants() | 46 | .descendants() |
@@ -55,7 +55,7 @@ pub(super) fn file_items(db: &impl HirDatabase, file_id: FileId) -> Arc<FileItem | |||
55 | pub(super) fn file_item( | 55 | pub(super) fn file_item( |
56 | db: &impl HirDatabase, | 56 | db: &impl HirDatabase, |
57 | file_id: FileId, | 57 | file_id: FileId, |
58 | file_item_id: FileItemId, | 58 | file_item_id: SourceFileItemId, |
59 | ) -> SyntaxNode { | 59 | ) -> SyntaxNode { |
60 | db.file_items(file_id)[file_item_id].clone() | 60 | db.file_items(file_id)[file_item_id].clone() |
61 | } | 61 | } |