mirror of https://github.com/astral-sh/ruff
precommit
This commit is contained in:
parent
39353da108
commit
1810b7c7a3
|
|
@ -820,10 +820,7 @@ fn definitions_to_navigation_targets<'db>(
|
|||
}
|
||||
}
|
||||
|
||||
pub fn find_goto_target(
|
||||
parsed: &ParsedModuleRef,
|
||||
offset: TextSize,
|
||||
) -> Option<GotoTarget<'_>> {
|
||||
pub fn find_goto_target(parsed: &ParsedModuleRef, offset: TextSize) -> Option<GotoTarget<'_>> {
|
||||
let token = parsed
|
||||
.tokens()
|
||||
.at_offset(offset)
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
# Hover type assertions
|
||||
|
||||
This document tests the hover assertion functionality in mdtest. Hover assertions allow testing
|
||||
the inferred type at a specific position in the code, similar to how a language server's hover
|
||||
feature works.
|
||||
This document tests the hover assertion functionality in mdtest. Hover assertions allow testing the
|
||||
inferred type at a specific position in the code, similar to how a language server's hover feature
|
||||
works.
|
||||
|
||||
## Basic hover assertions
|
||||
|
||||
|
|
|
|||
|
|
@ -381,7 +381,11 @@ fn run_test(
|
|||
let assertions = assertion::InlineFileAssertions::from_file(db, test_file.file);
|
||||
|
||||
// Generate and add hover outputs
|
||||
check_outputs.extend(hover::generate_hover_outputs(db, test_file.file, &assertions));
|
||||
check_outputs.extend(hover::generate_hover_outputs(
|
||||
db,
|
||||
test_file.file,
|
||||
&assertions,
|
||||
));
|
||||
|
||||
let failure = match matcher::match_file(db, test_file.file, &check_outputs) {
|
||||
Ok(()) => None,
|
||||
|
|
|
|||
Loading…
Reference in New Issue