diff options
author | Aleksey Kladov <[email protected]> | 2019-01-01 17:19:24 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2019-01-01 19:15:35 +0000 |
commit | 4161466918baedaeef995040888471a65ca997a4 (patch) | |
tree | 9a80837fb483d6942d2d2575e270cc8c6c0b5173 /crates/ra_hir/src | |
parent | 9d4af40995b4d01ad9b75dee0a000dd57b8bd87f (diff) |
introduce MFileId
Diffstat (limited to 'crates/ra_hir/src')
-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)] |