diff options
Diffstat (limited to 'crates/ra_analysis/src/lib.rs')
-rw-r--r-- | crates/ra_analysis/src/lib.rs | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/crates/ra_analysis/src/lib.rs b/crates/ra_analysis/src/lib.rs index 13527e628..4d895b004 100644 --- a/crates/ra_analysis/src/lib.rs +++ b/crates/ra_analysis/src/lib.rs | |||
@@ -274,26 +274,6 @@ impl<T> RangeInfo<T> { | |||
274 | } | 274 | } |
275 | } | 275 | } |
276 | 276 | ||
277 | /// Result of "goto def" query. | ||
278 | #[derive(Debug)] | ||
279 | pub struct ReferenceResolution { | ||
280 | /// The range of the reference itself. Client does not know what constitutes | ||
281 | /// a reference, it handles us only the offset. It's helpful to tell the | ||
282 | /// client where the reference was. | ||
283 | pub reference_range: TextRange, | ||
284 | /// What this reference resolves to. | ||
285 | pub resolves_to: Vec<NavigationTarget>, | ||
286 | } | ||
287 | |||
288 | impl ReferenceResolution { | ||
289 | fn new(reference_range: TextRange) -> ReferenceResolution { | ||
290 | ReferenceResolution { | ||
291 | reference_range, | ||
292 | resolves_to: Vec::new(), | ||
293 | } | ||
294 | } | ||
295 | } | ||
296 | |||
297 | /// `AnalysisHost` stores the current state of the world. | 277 | /// `AnalysisHost` stores the current state of the world. |
298 | #[derive(Debug, Default)] | 278 | #[derive(Debug, Default)] |
299 | pub struct AnalysisHost { | 279 | pub struct AnalysisHost { |