diff options
Diffstat (limited to 'crates/ra_analysis/src/descriptors/mod.rs')
-rw-r--r-- | crates/ra_analysis/src/descriptors/mod.rs | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/crates/ra_analysis/src/descriptors/mod.rs b/crates/ra_analysis/src/descriptors/mod.rs index 6b56d92e1..82658211f 100644 --- a/crates/ra_analysis/src/descriptors/mod.rs +++ b/crates/ra_analysis/src/descriptors/mod.rs | |||
@@ -5,7 +5,7 @@ use std::sync::Arc; | |||
5 | 5 | ||
6 | use ra_syntax::{ | 6 | use ra_syntax::{ |
7 | ast::{self, AstNode, FnDefNode}, | 7 | ast::{self, AstNode, FnDefNode}, |
8 | TextRange, | 8 | TextRange, SmolStr, |
9 | }; | 9 | }; |
10 | 10 | ||
11 | use crate::{ | 11 | use crate::{ |
@@ -50,6 +50,20 @@ salsa::query_group! { | |||
50 | } | 50 | } |
51 | } | 51 | } |
52 | 52 | ||
53 | #[derive(Debug, Clone, PartialEq, Eq)] | ||
54 | pub(crate) struct Path { | ||
55 | kind: PathKind, | ||
56 | segments: Vec<SmolStr>, | ||
57 | } | ||
58 | |||
59 | #[derive(Debug, Clone, Copy, PartialEq, Eq)] | ||
60 | pub(crate) enum PathKind { | ||
61 | Abs, | ||
62 | Self_, | ||
63 | Super, | ||
64 | Crate, | ||
65 | } | ||
66 | |||
53 | #[derive(Debug)] | 67 | #[derive(Debug)] |
54 | pub struct ReferenceDescriptor { | 68 | pub struct ReferenceDescriptor { |
55 | pub range: TextRange, | 69 | pub range: TextRange, |