mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-03 15:15:24 +00:00
Convert code to text-size
This commit is contained in:
parent
27a7718880
commit
b1d5817dd1
75 changed files with 438 additions and 456 deletions
|
@ -1,11 +1,11 @@
|
|||
//! FIXME: write short doc here
|
||||
|
||||
use ra_syntax::{SourceFile, TextUnit};
|
||||
use ra_syntax::{SourceFile, TextSize};
|
||||
use ra_text_edit::TextEdit;
|
||||
|
||||
pub use test_utils::*;
|
||||
|
||||
pub fn check_action<F: Fn(&SourceFile, TextUnit) -> Option<TextEdit>>(
|
||||
pub fn check_action<F: Fn(&SourceFile, TextSize) -> Option<TextEdit>>(
|
||||
before: &str,
|
||||
after: &str,
|
||||
f: F,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue