Remove DescendPreference::SameText

This commit is contained in:
Lukas Wirth 2024-08-22 12:33:32 +02:00
parent 011e3bb9ac
commit f979667fb5
13 changed files with 303 additions and 228 deletions

View file

@ -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