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:
Mirko Rainer 2021-10-12 11:52:31 -04:00
parent 64b1c72af2
commit eccfa1645b
16 changed files with 20 additions and 22 deletions

View file

@ -623,7 +623,7 @@ impl FunctionBody {
.children_with_tokens()
.flat_map(SyntaxElement::into_token)
.filter(|it| it.kind() == SyntaxKind::IDENT)
.flat_map(|t| sema.descend_into_macros_many(t))
.flat_map(|t| sema.descend_into_macros(t))
.for_each(|t| cb(t.parent().and_then(ast::NameRef::cast)));
}
}