diff options
author | Aleksey Kladov <[email protected]> | 2019-01-02 13:00:35 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2019-01-02 13:00:35 +0000 |
commit | 1076e82856f353763de8426d378fcd1e371cbed4 (patch) | |
tree | 2ec32a586d0ee00e0d35a489efeaf31c91d14a15 /crates/ra_hir/src/ids.rs | |
parent | 35b3fc02e02fa21deb51105d04132d55d4282754 (diff) |
small rename
Diffstat (limited to 'crates/ra_hir/src/ids.rs')
-rw-r--r-- | crates/ra_hir/src/ids.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_hir/src/ids.rs b/crates/ra_hir/src/ids.rs index 6d59ef659..a09dee8b1 100644 --- a/crates/ra_hir/src/ids.rs +++ b/crates/ra_hir/src/ids.rs | |||
@@ -31,12 +31,12 @@ pub struct HirFileId(HirFileIdRepr); | |||
31 | impl HirFileId { | 31 | impl HirFileId { |
32 | /// For macro-expansion files, returns the file original source file the | 32 | /// For macro-expansion files, returns the file original source file the |
33 | /// expansionoriginated from. | 33 | /// expansionoriginated from. |
34 | pub(crate) fn original_file_id(self, db: &impl HirDatabase) -> FileId { | 34 | pub(crate) fn original_file(self, db: &impl HirDatabase) -> FileId { |
35 | match self.0 { | 35 | match self.0 { |
36 | HirFileIdRepr::File(file_id) => file_id, | 36 | HirFileIdRepr::File(file_id) => file_id, |
37 | HirFileIdRepr::Macro(macro_call_id) => { | 37 | HirFileIdRepr::Macro(macro_call_id) => { |
38 | let loc = macro_call_id.loc(db); | 38 | let loc = macro_call_id.loc(db); |
39 | loc.source_item_id.file_id.original_file_id(db) | 39 | loc.source_item_id.file_id.original_file(db) |
40 | } | 40 | } |
41 | } | 41 | } |
42 | } | 42 | } |