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

@ -71,7 +71,8 @@ impl<'a, 'b> ExprValidator<'a, 'b> {
}
let source_map = self.func.body_source_map(db);
let file_id = self.func.source(db).file_id;
let source_file = db.parse(file_id.original_file(db)).tree;
let parse = db.parse(file_id.original_file(db));
let source_file = parse.tree();
if let Some(field_list_node) = source_map
.expr_syntax(id)
.map(|ptr| ptr.to_node(source_file.syntax()))