mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 22:31:43 +00:00
Remove DescendPreference::SameText
This commit is contained in:
parent
011e3bb9ac
commit
f979667fb5
13 changed files with 303 additions and 228 deletions
|
@ -410,7 +410,8 @@ fn traverse(
|
|||
})
|
||||
.unwrap()
|
||||
} else {
|
||||
sema.descend_into_macros_single(DescendPreference::SameKind, token)
|
||||
// FIXME: We should probably rank the tokens and find the most suitable?
|
||||
sema.descend_into_macros_single_exact(token)
|
||||
};
|
||||
match token.parent().and_then(ast::NameLike::cast) {
|
||||
// Remap the token into the wrapping single token nodes
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue