rename ParsedFile -> File

This commit is contained in:
Aleksey Kladov 2018-08-25 11:44:58 +03:00
parent cf278ed3bf
commit 220d285b4a
11 changed files with 39 additions and 39 deletions

View file

@ -1,6 +1,6 @@
use libeditor::{FileSymbol, file_symbols};
use libsyntax2::{
ParsedFile,
File,
SyntaxKind::{self, *},
};
use fst::{self, IntoStreamer, Streamer};
@ -12,7 +12,7 @@ pub(crate) struct FileSymbols {
}
impl FileSymbols {
pub(crate) fn new(file: &ParsedFile) -> FileSymbols {
pub(crate) fn new(file: &File) -> FileSymbols {
let mut symbols = file_symbols(file)
.into_iter()
.map(|s| (s.name.as_str().to_lowercase(), s))