make Parse fields private

this is in preparation for the new rowan API
This commit is contained in:
Aleksey Kladov 2019-07-12 19:41:13 +03:00
parent 2e466bb365
commit deab4caa7b
31 changed files with 109 additions and 99 deletions

View file

@ -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(),