mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 22:31:43 +00:00
migrate ra_ide_api to the new rowan
This commit is contained in:
parent
0343c4a815
commit
f1abc7bdc6
29 changed files with 342 additions and 290 deletions
|
@ -26,7 +26,7 @@ mod tests {
|
|||
fn do_check(before: &str, after: &str) {
|
||||
let (pos, before) = extract_offset(before);
|
||||
let parse = SourceFile::parse(&before);
|
||||
let new_pos = match matching_brace(parse.tree(), pos) {
|
||||
let new_pos = match matching_brace(&parse.tree(), pos) {
|
||||
None => pos,
|
||||
Some(pos) => pos,
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue