[CodeCompletion] Remove unused 'isAsync' flag from CodeCompletionResult

This commit is contained in:
Rintaro Ishizaki
2024-05-15 13:43:19 -07:00
parent 9a6770e770
commit 39d633f5a8
9 changed files with 16 additions and 42 deletions

View File

@@ -135,7 +135,7 @@ bool SourceKit::CodeCompletion::addCustomCompletions(
auto *contextFreeResult =
ContextFreeCodeCompletionResult::createPatternOrBuiltInOperatorResult(
sink.swiftSink, CodeCompletionResultKind::Pattern, completionString,
CodeCompletionOperatorKind::None, /*IsAsync=*/false,
CodeCompletionOperatorKind::None,
/*BriefDocComment=*/"", CodeCompletionResultType::unknown(),
ContextFreeNotRecommendedReason::None,
CodeCompletionDiagnosticSeverity::None, /*DiagnosticMessage=*/"");
@@ -1156,7 +1156,7 @@ Completion *CompletionBuilder::finish() {
contextFreeBase.getKind(),
contextFreeBase.getOpaqueAssociatedKind(), opKind,
contextFreeBase.getMacroRoles(), contextFreeBase.isSystem(),
contextFreeBase.isAsync(), contextFreeBase.hasAsyncAlternative(),
contextFreeBase.hasAsyncAlternative(),
newCompletionString, contextFreeBase.getModuleName(),
contextFreeBase.getBriefDocComment(),
contextFreeBase.getAssociatedUSRs(),