mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 05:45:12 +00:00
doc symbols
This commit is contained in:
parent
7afd84febc
commit
f2291d6a76
11 changed files with 2436 additions and 2413 deletions
|
@ -10,7 +10,7 @@ use std::{
|
|||
};
|
||||
use clap::{App, Arg, SubCommand};
|
||||
use tools::collect_tests;
|
||||
use libeditor::{File, syntax_tree, symbols};
|
||||
use libeditor::{File, syntax_tree, file_symbols};
|
||||
|
||||
type Result<T> = ::std::result::Result<T, failure::Error>;
|
||||
|
||||
|
@ -51,7 +51,7 @@ fn main() -> Result<()> {
|
|||
}
|
||||
("symbols", _) => {
|
||||
let file = file()?;
|
||||
for s in symbols(&file) {
|
||||
for s in file_symbols(&file) {
|
||||
println!("{:?}", s);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue