mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-02 22:54:58 +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
|
@ -87,7 +87,7 @@ impl FromIterator<TableEntry<FileId, Parse>> for SyntaxTreeStats {
|
|||
let mut res = SyntaxTreeStats::default();
|
||||
for entry in iter {
|
||||
res.total += 1;
|
||||
if let Some(tree) = entry.value.as_ref().map(|it| &it.tree) {
|
||||
if let Some(tree) = entry.value.as_ref().map(|it| it.tree()) {
|
||||
res.retained += 1;
|
||||
res.retained_size += tree.syntax().memory_size_of_subtree();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue