mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-02 06:41:48 +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
|
@ -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()))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue