separete structure from symbols
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user