diff options
-rw-r--r-- | crates/ra_hir/src/lib.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/crates/ra_hir/src/lib.rs b/crates/ra_hir/src/lib.rs index 2f9684e33..4c67921bd 100644 --- a/crates/ra_hir/src/lib.rs +++ b/crates/ra_hir/src/lib.rs | |||
@@ -55,6 +55,13 @@ pub use self::{ | |||
55 | 55 | ||
56 | pub use self::function::FnSignatureInfo; | 56 | pub use self::function::FnSignatureInfo; |
57 | 57 | ||
58 | /// An `MFileId` is like a `FileId`, but it can also refer to code generated by | ||
59 | /// macros. | ||
60 | pub enum MFileId { | ||
61 | File(FileId), | ||
62 | Macro(MacroCallId), | ||
63 | } | ||
64 | |||
58 | /// Def's are a core concept of hir. A `Def` is an Item (function, module, etc) | 65 | /// Def's are a core concept of hir. A `Def` is an Item (function, module, etc) |
59 | /// in a specific module. | 66 | /// in a specific module. |
60 | #[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)] | 67 | #[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)] |