From f2291d6a760f8a2d15074b5874facb03f5f838bc Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Sat, 11 Aug 2018 14:44:12 +0300 Subject: doc symbols --- crates/cli/src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crates/cli') diff --git a/crates/cli/src/main.rs b/crates/cli/src/main.rs index 863aeb99d..b6e9139c7 100644 --- a/crates/cli/src/main.rs +++ b/crates/cli/src/main.rs @@ -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 = ::std::result::Result; @@ -51,7 +51,7 @@ fn main() -> Result<()> { } ("symbols", _) => { let file = file()?; - for s in symbols(&file) { + for s in file_symbols(&file) { println!("{:?}", s); } } -- cgit v1.2.3