Make DeclNameRef able to store a module selector

In this commit, this change affects certain diagnostics but doesn’t actually alter name lookup behavior yet.
This commit is contained in:
Becca Royal-Gordon
2025-09-11 14:37:00 -07:00
parent 4991bf930f
commit 64d8b70942
8 changed files with 137 additions and 47 deletions

View File

@@ -10278,8 +10278,8 @@ performMemberLookup(ConstraintKind constraintKind, DeclNameRef memberName,
// high.
if (auto *args = getArgumentList(memberLocator)) {
SmallVector<Identifier, 4> scratch;
memberName.getFullName() = DeclName(ctx, memberName.getBaseName(),
args->getArgumentLabels(scratch));
memberName = memberName.withArgumentLabels(
ctx, args->getArgumentLabels(scratch));
}
}