aboutsummaryrefslogtreecommitdiff
path: root/crates/libanalysis/src/descriptors.rs
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2018-09-15 18:56:19 +0100
committerAleksey Kladov <[email protected]>2018-09-15 22:00:05 +0100
commit3ebeb0db8de65434db79c86aeed5473bfb21334f (patch)
treea17f7418309ccb063d7142d56c3fe46c0d609a7b /crates/libanalysis/src/descriptors.rs
parent58674dc3c415142dbdd93b990d9f5b4fe10bef69 (diff)
move readonly source to module tree descr
Diffstat (limited to 'crates/libanalysis/src/descriptors.rs')
-rw-r--r--crates/libanalysis/src/descriptors.rs10
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)]
46pub(crate) struct ModuleTreeDescriptor { 46pub(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)]
53struct Node(usize); 53struct Node(usize);
54#[derive(Hash)] 54#[derive(Hash, Debug)]
55struct NodeData { 55struct 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)]
62pub(crate) struct Link(usize); 62pub(crate) struct Link(usize);
63#[derive(Hash)] 63#[derive(Hash, Debug)]
64struct LinkData { 64struct LinkData {
65 owner: Node, 65 owner: Node,
66 name: SmolStr, 66 name: SmolStr,