aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_analysis/src
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_analysis/src')
-rw-r--r--crates/ra_analysis/src/lib.rs17
1 files changed, 1 insertions, 16 deletions
diff --git a/crates/ra_analysis/src/lib.rs b/crates/ra_analysis/src/lib.rs
index 5b6e4df8c..a1912e90b 100644
--- a/crates/ra_analysis/src/lib.rs
+++ b/crates/ra_analysis/src/lib.rs
@@ -9,15 +9,6 @@ extern crate relative_path;
9extern crate rustc_hash; 9extern crate rustc_hash;
10extern crate salsa; 10extern crate salsa;
11 11
12macro_rules! ctry {
13 ($expr:expr) => {
14 match $expr {
15 None => return Ok(None),
16 Some(it) => it,
17 }
18 };
19}
20
21mod arena; 12mod arena;
22mod db; 13mod db;
23mod imp; 14mod imp;
@@ -47,7 +38,7 @@ pub use ra_editor::{
47}; 38};
48 39
49pub use ra_db::{ 40pub use ra_db::{
50 Canceled, Cancelable, 41 Canceled, Cancelable, FilePosition,
51 CrateGraph, CrateId, FileId, FileResolver 42 CrateGraph, CrateId, FileId, FileResolver
52}; 43};
53 44
@@ -119,12 +110,6 @@ impl AnalysisHost {
119 } 110 }
120} 111}
121 112
122#[derive(Clone, Copy, Debug)]
123pub struct FilePosition {
124 pub file_id: FileId,
125 pub offset: TextUnit,
126}
127
128#[derive(Debug)] 113#[derive(Debug)]
129pub struct SourceChange { 114pub struct SourceChange {
130 pub label: String, 115 pub label: String,