mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 12:54:58 +00:00
introduce hir crate
This commit is contained in:
parent
f66e5b6e6b
commit
0e4b710af8
14 changed files with 2270 additions and 17 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue