diff options
author | Aleksey Kladov <[email protected]> | 2018-12-18 22:48:46 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2018-12-18 22:51:05 +0000 |
commit | 1c5ce7a8682c9e14ce726388b88897644721b19b (patch) | |
tree | bba7163aa81ceba1dfb26f481b8fd974421aaa8b /crates/ra_hir/src/lib.rs | |
parent | 9664fbcac5e53d725c6e438ffba2194921321b76 (diff) |
File module source does not depend on syntax
Diffstat (limited to 'crates/ra_hir/src/lib.rs')
-rw-r--r-- | crates/ra_hir/src/lib.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/crates/ra_hir/src/lib.rs b/crates/ra_hir/src/lib.rs index 80354a49d..5941a9ea3 100644 --- a/crates/ra_hir/src/lib.rs +++ b/crates/ra_hir/src/lib.rs | |||
@@ -109,7 +109,8 @@ pub(crate) type SourceFileItemId = Id<SyntaxNode>; | |||
109 | #[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)] | 109 | #[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)] |
110 | pub struct SourceItemId { | 110 | pub struct SourceItemId { |
111 | file_id: FileId, | 111 | file_id: FileId, |
112 | item_id: SourceFileItemId, | 112 | /// None for the whole file. |
113 | item_id: Option<SourceFileItemId>, | ||
113 | } | 114 | } |
114 | 115 | ||
115 | /// Maps item's `SyntaxNode`s to `SourceFileItemId` and back. | 116 | /// Maps item's `SyntaxNode`s to `SourceFileItemId` and back. |