[Completion] Add convertible type relation for attached macros

Resolves rdar://108678938.
This commit is contained in:
Ben Barham
2023-04-28 15:08:37 -07:00
parent db14ae840e
commit f7d1cc8426
8 changed files with 76 additions and 74 deletions

View File

@@ -142,8 +142,7 @@ bool SourceKit::CodeCompletion::addCustomCompletions(
auto *swiftResult = new (sink.allocator) CodeCompletion::SwiftResult(
*contextFreeResult, SemanticContextKind::Local,
CodeCompletionFlairBit::ExpressionSpecific,
/*NumBytesToErase=*/0, /*TypeContext=*/nullptr, /*DC=*/nullptr,
/*USRTypeContext=*/nullptr, /*CanCurrDeclContextHandleAsync=*/false,
/*NumBytesToErase=*/0, CodeCompletionResultTypeRelation::Unrelated,
ContextualNotRecommendedReason::None);
CompletionBuilder builder(sink, *swiftResult);