mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[CodeCompletion] Add 'IsSystem' flag to code completion result item
'key.is_system: 1' is added if the associated declaration is from a system module. rdar://problem/62617558
This commit is contained in:
@@ -1315,10 +1315,11 @@ Completion *CompletionBuilder::finish() {
|
||||
if (current.getKind() == SwiftResult::Declaration) {
|
||||
base = SwiftResult(
|
||||
semanticContext, current.getNumBytesToErase(), completionString,
|
||||
current.getAssociatedDeclKind(), current.getModuleName(),
|
||||
current.isNotRecommended(), current.getNotRecommendedReason(),
|
||||
current.getBriefDocComment(), current.getAssociatedUSRs(),
|
||||
current.getDeclKeywords(), typeRelation, opKind);
|
||||
current.getAssociatedDeclKind(), current.isSystem(),
|
||||
current.getModuleName(), current.isNotRecommended(),
|
||||
current.getNotRecommendedReason(), current.getBriefDocComment(),
|
||||
current.getAssociatedUSRs(), current.getDeclKeywords(),
|
||||
typeRelation, opKind);
|
||||
} else {
|
||||
base = SwiftResult(current.getKind(), semanticContext,
|
||||
current.getNumBytesToErase(), completionString,
|
||||
|
||||
Reference in New Issue
Block a user