mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 14:21:44 +00:00
make Parse fields private
this is in preparation for the new rowan API
This commit is contained in:
parent
2e466bb365
commit
deab4caa7b
31 changed files with 109 additions and 99 deletions
|
@ -25,8 +25,8 @@ mod tests {
|
|||
fn test_matching_brace() {
|
||||
fn do_check(before: &str, after: &str) {
|
||||
let (pos, before) = extract_offset(before);
|
||||
let file = SourceFile::parse(&before).tree;
|
||||
let new_pos = match matching_brace(&file, pos) {
|
||||
let parse = SourceFile::parse(&before);
|
||||
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