diff options
author | Florian Diebold <[email protected]> | 2020-03-08 10:02:14 +0000 |
---|---|---|
committer | Florian Diebold <[email protected]> | 2020-03-08 10:10:48 +0000 |
commit | afdf08e964345ac4a884a5630772611ba81f6969 (patch) | |
tree | b72b06310a3cd9bcec2234b0f38ff93eb6a8feb0 /crates/ra_hir_expand/src/lib.rs | |
parent | f617455d10084da30a13cc49ffdd6b86c6049ba1 (diff) |
Move hypothetical expansion to hir_expand
Diffstat (limited to 'crates/ra_hir_expand/src/lib.rs')
-rw-r--r-- | crates/ra_hir_expand/src/lib.rs | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/crates/ra_hir_expand/src/lib.rs b/crates/ra_hir_expand/src/lib.rs index 92f3902dd..3fce73e8a 100644 --- a/crates/ra_hir_expand/src/lib.rs +++ b/crates/ra_hir_expand/src/lib.rs | |||
@@ -157,13 +157,6 @@ impl HirFileId { | |||
157 | } | 157 | } |
158 | } | 158 | } |
159 | } | 159 | } |
160 | |||
161 | pub fn macro_file(self) -> Option<MacroFile> { | ||
162 | match self.0 { | ||
163 | HirFileIdRepr::FileId(_) => None, | ||
164 | HirFileIdRepr::MacroFile(m) => Some(m), | ||
165 | } | ||
166 | } | ||
167 | } | 160 | } |
168 | 161 | ||
169 | #[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)] | 162 | #[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)] |
@@ -303,7 +296,7 @@ pub struct ExpansionInfo { | |||
303 | exp_map: Arc<mbe::TokenMap>, | 296 | exp_map: Arc<mbe::TokenMap>, |
304 | } | 297 | } |
305 | 298 | ||
306 | pub use mbe::{syntax_node_to_token_tree, Origin}; | 299 | pub use mbe::Origin; |
307 | use ra_parser::FragmentKind; | 300 | use ra_parser::FragmentKind; |
308 | 301 | ||
309 | impl ExpansionInfo { | 302 | impl ExpansionInfo { |