mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 04:19:13 +00:00
fix typos in mbe tests
This commit is contained in:
parent
c8bcfe6a05
commit
61e1474ab3
29 changed files with 92 additions and 91 deletions
|
@ -68,7 +68,7 @@ impl HoverResult {
|
|||
}
|
||||
|
||||
pub(crate) fn hover(db: &RootDatabase, position: FilePosition) -> Option<RangeInfo<HoverResult>> {
|
||||
let file = db.parse(position.file_id);
|
||||
let file = db.parse(position.file_id).tree;
|
||||
let mut res = HoverResult::new();
|
||||
|
||||
let mut range = None;
|
||||
|
@ -120,7 +120,7 @@ pub(crate) fn hover(db: &RootDatabase, position: FilePosition) -> Option<RangeIn
|
|||
}
|
||||
|
||||
pub(crate) fn type_of(db: &RootDatabase, frange: FileRange) -> Option<String> {
|
||||
let file = db.parse(frange.file_id);
|
||||
let file = db.parse(frange.file_id).tree;
|
||||
let syntax = file.syntax();
|
||||
let leaf_node = find_covering_element(syntax, frange.range);
|
||||
// if we picked identifier, expand to pattern/expression
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue