mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[CodeCompletion] Explain why results aren't recommended
* Implement 'getDiagnosticSeverity()' and 'getDiagnosticMessage()' on 'CodeCompletionResult' * Differentiate 'RedundantImportIndirect' from 'RedundantImport' * Make non-Sendable check respects '-warn-concurrency' rdar://76129658
This commit is contained in:
@@ -1170,9 +1170,10 @@ Completion *CompletionBuilder::finish() {
|
||||
semanticContext, flair, current.getNumBytesToErase(), completionString,
|
||||
current.getAssociatedDeclKind(), current.isSystem(),
|
||||
current.getModuleName(), current.getSourceFilePath(),
|
||||
current.getNotRecommendedReason(), current.getBriefDocComment(),
|
||||
current.getAssociatedUSRs(), current.getDeclKeywords(), typeRelation,
|
||||
opKind);
|
||||
current.getNotRecommendedReason(), current.getDiagnosticSeverity(),
|
||||
current.getDiagnosticMessage(), current.getBriefDocComment(),
|
||||
current.getAssociatedUSRs(), current.getDeclKeywords(),
|
||||
typeRelation, opKind);
|
||||
} else {
|
||||
base = SwiftResult(current.getKind(), semanticContext, flair,
|
||||
current.getNumBytesToErase(), completionString,
|
||||
|
||||
Reference in New Issue
Block a user