mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 20:42:04 +00:00
Fix function calls
This commit is contained in:
parent
fc8024de51
commit
a5da770ec6
10 changed files with 9 additions and 12 deletions
|
@ -5,7 +5,7 @@ use std::fmt::Write;
|
|||
|
||||
/// Parse a file and create a string representation of the resulting parse tree.
|
||||
pub fn dump_tree(syntax: SyntaxNodeRef) -> String {
|
||||
let mut errors: Vec<_> = syntax.root_data().iter().cloned().collect();
|
||||
let mut errors: Vec<_> = syntax.root_data().to_vec();
|
||||
errors.sort_by_key(|e| e.offset);
|
||||
let mut err_pos = 0;
|
||||
let mut level = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue