mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 05:45:12 +00:00
rename ParsedFile -> File
This commit is contained in:
parent
cf278ed3bf
commit
220d285b4a
11 changed files with 39 additions and 39 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue