mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 14:21:44 +00:00
Merge #10532
10532: Rename `descend_into_macros` Function per FIXME comment r=Veykril a=mirkoRainer 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. I was prompted to do this per a FIXME comment, which is removed in this PR. Co-authored-by: Mirko Rainer <mirkorainer@outlook.com>
This commit is contained in:
commit
d56c8796d6
16 changed files with 20 additions and 22 deletions
|
@ -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)));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue