Saw a FIXME comment and decided to fix it.
This renames `descend_into_macros` to `descend_into_macros_single` and `descend_into_macros_many` into `descend_into_macros`. However, this does not touch a function in `SemanticsImpl` of same name.
This commit is contained in:
@@ -162,7 +162,7 @@ impl StaticIndex<'_> {
|
||||
}
|
||||
|
||||
fn get_definition(sema: &Semantics<RootDatabase>, token: SyntaxToken) -> Option<Definition> {
|
||||
for token in sema.descend_into_macros_many(token) {
|
||||
for token in sema.descend_into_macros(token) {
|
||||
let def = Definition::from_token(&sema, &token);
|
||||
if let [x] = def.as_slice() {
|
||||
return Some(*x);
|
||||
|
||||
Reference in New Issue
Block a user