diff options
author | Aleksey Kladov <[email protected]> | 2018-11-28 00:42:26 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2018-11-28 00:42:26 +0000 |
commit | 0e4b710af83844f4a7c471c5335c99aaaa25a90c (patch) | |
tree | a073635942db7431b93e191aa98201a01e3fc2cd /crates/ra_analysis | |
parent | f66e5b6e6b6f7b2b899ef4207dfe46655d77334c (diff) |
introduce hir crate
Diffstat (limited to 'crates/ra_analysis')
-rw-r--r-- | crates/ra_analysis/src/lib.rs | 17 |
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; | |||
9 | extern crate rustc_hash; | 9 | extern crate rustc_hash; |
10 | extern crate salsa; | 10 | extern crate salsa; |
11 | 11 | ||
12 | macro_rules! ctry { | ||
13 | ($expr:expr) => { | ||
14 | match $expr { | ||
15 | None => return Ok(None), | ||
16 | Some(it) => it, | ||
17 | } | ||
18 | }; | ||
19 | } | ||
20 | |||
21 | mod arena; | 12 | mod arena; |
22 | mod db; | 13 | mod db; |
23 | mod imp; | 14 | mod imp; |
@@ -47,7 +38,7 @@ pub use ra_editor::{ | |||
47 | }; | 38 | }; |
48 | 39 | ||
49 | pub use ra_db::{ | 40 | pub 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)] | ||
123 | pub struct FilePosition { | ||
124 | pub file_id: FileId, | ||
125 | pub offset: TextUnit, | ||
126 | } | ||
127 | |||
128 | #[derive(Debug)] | 113 | #[derive(Debug)] |
129 | pub struct SourceChange { | 114 | pub struct SourceChange { |
130 | pub label: String, | 115 | pub label: String, |