mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 04:44:57 +00:00
Improve feature docs for highlight_related
This commit is contained in:
parent
f283fce594
commit
511ae17d07
1 changed files with 4 additions and 1 deletions
|
@ -21,7 +21,10 @@ pub struct DocumentHighlight {
|
||||||
|
|
||||||
// Feature: Highlight Related
|
// Feature: Highlight Related
|
||||||
//
|
//
|
||||||
// Highlights exit points, yield points or the definition and all references of the item at the cursor location in the current file.
|
// Highlights constructs related to the thing under the cursor:
|
||||||
|
// - if on an identifier, highlights all references to that identifier in the current file
|
||||||
|
// - if on an `async` or `await token, highlights all yield points for that async context
|
||||||
|
// - if on a `return` token, `?` character or `->` return type arrow, highlights all exit points for that context
|
||||||
pub(crate) fn highlight_related(
|
pub(crate) fn highlight_related(
|
||||||
sema: &Semantics<RootDatabase>,
|
sema: &Semantics<RootDatabase>,
|
||||||
position: FilePosition,
|
position: FilePosition,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue