mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[NFC] Thread DeclNameRef through most of the compiler
This huge commit contains as many of the mechanical changes as possible.
This commit is contained in:
@@ -2259,8 +2259,9 @@ static int doPrintDecls(const CompilerInvocation &InitInvok,
|
||||
|
||||
for (const auto &name : DeclsToPrint) {
|
||||
ASTContext &ctx = CI.getASTContext();
|
||||
auto descriptor = UnqualifiedLookupDescriptor(ctx.getIdentifier(name),
|
||||
CI.getPrimarySourceFile());
|
||||
auto descriptor =
|
||||
UnqualifiedLookupDescriptor(DeclNameRef_(ctx.getIdentifier(name)),
|
||||
CI.getPrimarySourceFile());
|
||||
auto lookup = evaluateOrDefault(ctx.evaluator,
|
||||
UnqualifiedLookupRequest{descriptor}, {});
|
||||
for (auto result : lookup) {
|
||||
|
||||
Reference in New Issue
Block a user