mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 13:51:31 +00:00
separete structure from symbols
This commit is contained in:
parent
49ab441024
commit
2b828c68e8
9 changed files with 131 additions and 39 deletions
|
@ -10,7 +10,7 @@ use std::{
|
|||
};
|
||||
use clap::{App, Arg, SubCommand};
|
||||
use tools::collect_tests;
|
||||
use libeditor::{File, syntax_tree, file_symbols};
|
||||
use libeditor::{File, syntax_tree, file_structure};
|
||||
|
||||
type Result<T> = ::std::result::Result<T, failure::Error>;
|
||||
|
||||
|
@ -51,7 +51,7 @@ fn main() -> Result<()> {
|
|||
}
|
||||
("symbols", _) => {
|
||||
let file = file()?;
|
||||
for s in file_symbols(&file) {
|
||||
for s in file_structure(&file) {
|
||||
println!("{:?}", s);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue