mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 13:51:31 +00:00
rename source_file -> parse
This commit is contained in:
parent
ac757e114e
commit
9457b1f0e6
19 changed files with 41 additions and 47 deletions
|
@ -45,7 +45,7 @@ pub use crate::completion::completion_item::{CompletionItem, CompletionItemKind,
|
|||
/// identifier prefix/fuzzy match should be done higher in the stack, together
|
||||
/// with ordering of completions (currently this is done by the client).
|
||||
pub(crate) fn completions(db: &db::RootDatabase, position: FilePosition) -> Option<Completions> {
|
||||
let original_file = db.source_file(position.file_id);
|
||||
let original_file = db.parse(position.file_id);
|
||||
let ctx = CompletionContext::new(db, &original_file, position)?;
|
||||
|
||||
let mut acc = Completions::default();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue