mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 05:45:12 +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
|
@ -192,8 +192,8 @@ mod tests {
|
|||
|
||||
fn do_check(text: &str, fold_kinds: &[FoldKind]) {
|
||||
let (ranges, text) = extract_ranges(text, "fold");
|
||||
let file = SourceFile::parse(&text).tree;
|
||||
let folds = folding_ranges(&file);
|
||||
let parse = SourceFile::parse(&text);
|
||||
let folds = folding_ranges(parse.tree());
|
||||
|
||||
assert_eq!(
|
||||
folds.len(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue