mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +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:
@@ -895,7 +895,7 @@ private:
|
||||
const ParsedDeclName renamedParsedDeclName) {
|
||||
auto declContext = D->getDeclContext();
|
||||
ASTContext &astContext = D->getASTContext();
|
||||
auto renamedDeclName = renamedParsedDeclName.formDeclName(astContext);
|
||||
auto renamedDeclName = renamedParsedDeclName.formDeclNameRef(astContext);
|
||||
|
||||
if (isa<ClassDecl>(D) || isa<ProtocolDecl>(D)) {
|
||||
if (!renamedParsedDeclName.ContextName.empty()) {
|
||||
@@ -903,7 +903,7 @@ private:
|
||||
}
|
||||
SmallVector<ValueDecl *, 1> decls;
|
||||
declContext->lookupQualified(declContext->getParentModule(),
|
||||
renamedDeclName.getBaseIdentifier(),
|
||||
renamedDeclName.withoutArgumentLabels(),
|
||||
NL_OnlyTypes,
|
||||
decls);
|
||||
if (decls.size() == 1)
|
||||
|
||||
Reference in New Issue
Block a user