diff options
Diffstat (limited to 'crates/libanalysis/src/symbol_index.rs')
-rw-r--r-- | crates/libanalysis/src/symbol_index.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/libanalysis/src/symbol_index.rs b/crates/libanalysis/src/symbol_index.rs index 3c3252956..426de4c76 100644 --- a/crates/libanalysis/src/symbol_index.rs +++ b/crates/libanalysis/src/symbol_index.rs | |||
@@ -1,6 +1,6 @@ | |||
1 | use libeditor::{FileSymbol, file_symbols}; | 1 | use libeditor::{FileSymbol, file_symbols}; |
2 | use libsyntax2::{ | 2 | use libsyntax2::{ |
3 | ast, | 3 | ParsedFile, |
4 | SyntaxKind::{self, *}, | 4 | SyntaxKind::{self, *}, |
5 | }; | 5 | }; |
6 | use fst::{self, IntoStreamer, Streamer}; | 6 | use fst::{self, IntoStreamer, Streamer}; |
@@ -12,7 +12,7 @@ pub(crate) struct FileSymbols { | |||
12 | } | 12 | } |
13 | 13 | ||
14 | impl FileSymbols { | 14 | impl FileSymbols { |
15 | pub(crate) fn new(file: &ast::File) -> FileSymbols { | 15 | pub(crate) fn new(file: &ParsedFile) -> FileSymbols { |
16 | let mut symbols = file_symbols(file) | 16 | let mut symbols = file_symbols(file) |
17 | .into_iter() | 17 | .into_iter() |
18 | .map(|s| (s.name.as_str().to_lowercase(), s)) | 18 | .map(|s| (s.name.as_str().to_lowercase(), s)) |