aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_analysis
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2018-11-28 00:42:26 +0000
committerAleksey Kladov <[email protected]>2018-11-28 00:42:26 +0000
commit0e4b710af83844f4a7c471c5335c99aaaa25a90c (patch)
treea073635942db7431b93e191aa98201a01e3fc2cd /crates/ra_analysis
parentf66e5b6e6b6f7b2b899ef4207dfe46655d77334c (diff)
introduce hir crate
Diffstat (limited to 'crates/ra_analysis')
-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,