mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 21:05:02 +00:00
Use FilePosition everywhere
This commit is contained in:
parent
1e1c188cbf
commit
0192c116f7
7 changed files with 124 additions and 157 deletions
|
@ -1,16 +1,9 @@
|
|||
use std::sync::Arc;
|
||||
|
||||
use ra_syntax::TextUnit;
|
||||
use relative_path::{RelativePath, RelativePathBuf};
|
||||
use test_utils::{extract_offset, parse_fixture, CURSOR_MARKER};
|
||||
|
||||
use crate::{Analysis, AnalysisChange, AnalysisHost, FileId, FileResolver};
|
||||
|
||||
#[derive(Debug)]
|
||||
pub struct FilePosition {
|
||||
pub file_id: FileId,
|
||||
pub offset: TextUnit,
|
||||
}
|
||||
use crate::{Analysis, AnalysisChange, AnalysisHost, FileId, FileResolver, FilePosition};
|
||||
|
||||
/// Mock analysis is used in test to bootstrap an AnalysisHost/Analysis
|
||||
/// from a set of in-memory files.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue