mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 14:21:44 +00:00
Simplify
This commit is contained in:
parent
06b0cbf607
commit
3956a5b757
9 changed files with 91 additions and 51 deletions
|
@ -1,4 +1,8 @@
|
|||
//! Patterns telling us certain facts about current syntax element, they are used in completion context
|
||||
//!
|
||||
//! Most logic in this module first expands the token below the cursor to a maximum node that acts similar to the token itself.
|
||||
//! This means we for example expand a NameRef token to its outermost Path node, as semantically these act in the same location
|
||||
//! and the completions usually query for path specific things on the Path context instead. This simplifies some location handling.
|
||||
|
||||
use hir::Semantics;
|
||||
use ide_db::RootDatabase;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue