@@ -646,7 +646,6 @@ class CodeCompletionResult {
646
646
StringRef SourceFilePath;
647
647
StringRef BriefDocComment;
648
648
ArrayRef<StringRef> AssociatedUSRs;
649
- ArrayRef<std::pair<StringRef, StringRef>> DocWords;
650
649
unsigned TypeDistance : 3 ;
651
650
unsigned DiagnosticSeverity: 3 ;
652
651
StringRef DiagnosticMessage;
@@ -731,15 +730,13 @@ class CodeCompletionResult {
731
730
CodeCompletionResult::NotRecommendedReason NotRecReason,
732
731
StringRef BriefDocComment,
733
732
ArrayRef<StringRef> AssociatedUSRs,
734
- ArrayRef<std::pair<StringRef, StringRef>> DocWords,
735
733
enum ExpectedTypeRelation TypeDistance)
736
734
: Kind(ResultKind::Declaration), KnownOperatorKind(0 ),
737
735
SemanticContext(unsigned (SemanticContext)), Flair(unsigned (Flair.toRaw())),
738
736
NotRecommended(unsigned (NotRecReason)),
739
737
NumBytesToErase(NumBytesToErase), CompletionString(CompletionString),
740
738
ModuleName(ModuleName), BriefDocComment(BriefDocComment),
741
- AssociatedUSRs(AssociatedUSRs), DocWords(DocWords),
742
- TypeDistance(TypeDistance) {
739
+ AssociatedUSRs(AssociatedUSRs), TypeDistance(TypeDistance) {
743
740
assert (AssociatedDecl && " should have a decl" );
744
741
AssociatedKind = unsigned (getCodeCompletionDeclKind (AssociatedDecl));
745
742
IsSystem = getDeclIsSystem (AssociatedDecl);
@@ -762,7 +759,6 @@ class CodeCompletionResult {
762
759
CodeCompletionDiagnosticSeverity diagSeverity,
763
760
StringRef DiagnosticMessage, StringRef BriefDocComment,
764
761
ArrayRef<StringRef> AssociatedUSRs,
765
- ArrayRef<std::pair<StringRef, StringRef>> DocWords,
766
762
ExpectedTypeRelation TypeDistance,
767
763
CodeCompletionOperatorKind KnownOperatorKind)
768
764
: Kind(ResultKind::Declaration),
@@ -772,8 +768,7 @@ class CodeCompletionResult {
772
768
NumBytesToErase(NumBytesToErase), CompletionString(CompletionString),
773
769
ModuleName(ModuleName), SourceFilePath(SourceFilePath),
774
770
BriefDocComment(BriefDocComment), AssociatedUSRs(AssociatedUSRs),
775
- DocWords(DocWords), TypeDistance(TypeDistance),
776
- DiagnosticSeverity(unsigned (diagSeverity)),
771
+ TypeDistance(TypeDistance), DiagnosticSeverity(unsigned (diagSeverity)),
777
772
DiagnosticMessage(DiagnosticMessage) {
778
773
AssociatedKind = static_cast <unsigned >(DeclKind);
779
774
assert (CompletionString);
@@ -869,10 +864,6 @@ class CodeCompletionResult {
869
864
return AssociatedUSRs;
870
865
}
871
866
872
- ArrayRef<std::pair<StringRef, StringRef>> getDeclKeywords () const {
873
- return DocWords;
874
- }
875
-
876
867
void setSourceFilePath (StringRef value) {
877
868
SourceFilePath = value;
878
869
}
0 commit comments