introduce hir crate

This commit is contained in:
Aleksey Kladov 2018-11-28 03:42:26 +03:00
parent f66e5b6e6b
commit 0e4b710af8
14 changed files with 2270 additions and 17 deletions

View file

@ -9,15 +9,6 @@ extern crate relative_path;
extern crate rustc_hash;
extern crate salsa;
macro_rules! ctry {
($expr:expr) => {
match $expr {
None => return Ok(None),
Some(it) => it,
}
};
}
mod arena;
mod db;
mod imp;
@ -47,7 +38,7 @@ pub use ra_editor::{
};
pub use ra_db::{
Canceled, Cancelable,
Canceled, Cancelable, FilePosition,
CrateGraph, CrateId, FileId, FileResolver
};
@ -119,12 +110,6 @@ impl AnalysisHost {
}
}
#[derive(Clone, Copy, Debug)]
pub struct FilePosition {
pub file_id: FileId,
pub offset: TextUnit,
}
#[derive(Debug)]
pub struct SourceChange {
pub label: String,