diff options
author | Aleksey Kladov <[email protected]> | 2018-09-15 18:56:19 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2018-09-15 22:00:05 +0100 |
commit | 3ebeb0db8de65434db79c86aeed5473bfb21334f (patch) | |
tree | a17f7418309ccb063d7142d56c3fe46c0d609a7b /crates/libanalysis/src/descriptors.rs | |
parent | 58674dc3c415142dbdd93b990d9f5b4fe10bef69 (diff) |
move readonly source to module tree descr
Diffstat (limited to 'crates/libanalysis/src/descriptors.rs')
-rw-r--r-- | crates/libanalysis/src/descriptors.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/crates/libanalysis/src/descriptors.rs b/crates/libanalysis/src/descriptors.rs index e21ee728f..200f21576 100644 --- a/crates/libanalysis/src/descriptors.rs +++ b/crates/libanalysis/src/descriptors.rs | |||
@@ -42,25 +42,25 @@ pub struct Submodule { | |||
42 | pub name: SmolStr, | 42 | pub name: SmolStr, |
43 | } | 43 | } |
44 | 44 | ||
45 | #[derive(Hash)] | 45 | #[derive(Hash, Debug)] |
46 | pub(crate) struct ModuleTreeDescriptor { | 46 | pub(crate) struct ModuleTreeDescriptor { |
47 | nodes: Vec<NodeData>, | 47 | nodes: Vec<NodeData>, |
48 | links: Vec<LinkData>, | 48 | links: Vec<LinkData>, |
49 | file_id2node: BTreeMap<FileId, Node>, | 49 | file_id2node: BTreeMap<FileId, Node>, |
50 | } | 50 | } |
51 | 51 | ||
52 | #[derive(Clone, Copy, PartialEq, Eq, Hash)] | 52 | #[derive(Clone, Copy, PartialEq, Eq, Hash, Debug)] |
53 | struct Node(usize); | 53 | struct Node(usize); |
54 | #[derive(Hash)] | 54 | #[derive(Hash, Debug)] |
55 | struct NodeData { | 55 | struct NodeData { |
56 | file_id: FileId, | 56 | file_id: FileId, |
57 | links: Vec<Link>, | 57 | links: Vec<Link>, |
58 | parents: Vec<Link> | 58 | parents: Vec<Link> |
59 | } | 59 | } |
60 | 60 | ||
61 | #[derive(Clone, Copy, PartialEq, Eq, Hash)] | 61 | #[derive(Clone, Copy, PartialEq, Eq, Hash, Debug)] |
62 | pub(crate) struct Link(usize); | 62 | pub(crate) struct Link(usize); |
63 | #[derive(Hash)] | 63 | #[derive(Hash, Debug)] |
64 | struct LinkData { | 64 | struct LinkData { |
65 | owner: Node, | 65 | owner: Node, |
66 | name: SmolStr, | 66 | name: SmolStr, |