mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Merge pull request #71046 from ahoppen/ahoppen/copyable-completion
[CodeComplete] Emit `Copyable` declaration instead of keyword
This commit is contained in:
@@ -3444,8 +3444,8 @@ void CompletionLookup::getOptionalBindingCompletions(SourceLoc Loc) {
|
||||
/*IncludeTopLevel=*/false, Loc);
|
||||
}
|
||||
|
||||
void CompletionLookup::getWithoutConstraintTypes() {
|
||||
// FIXME: Once we have a typealias declaration for copyable, we should be
|
||||
// returning that instead of a keyword (rdar://109107817).
|
||||
addKeyword("Copyable");
|
||||
void CompletionLookup::addWithoutConstraintTypes() {
|
||||
auto *CopyableDecl = Ctx.getProtocol(KnownProtocolKind::Copyable);
|
||||
addNominalTypeRef(CopyableDecl, DeclVisibilityKind::VisibleAtTopLevel,
|
||||
DynamicLookupInfo());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user