Skip to content

Commit 6d59776

Browse files
committed
Fix bad merge
1 parent 9a9854b commit 6d59776

File tree

2 files changed

+1
-57
lines changed

2 files changed

+1
-57
lines changed

tools/SourceKit/include/SourceKit/Core/LangSupport.h

Lines changed: 1 addition & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -358,10 +358,6 @@ struct RefactoringInfo {
358358
};
359359

360360
struct CursorInfoData {
361-
<<<<<<< HEAD
362-
=======
363-
bool IsCancelled = false;
364-
>>>>>>> aad86098551240bff9af8aa6617861fdd0619c22
365361
// If nonempty, a proper Info could not be resolved (and the rest of the Info
366362
// will be empty). Clients can potentially use this to show a diagnostic
367363
// message to the user in lieu of using the empty response.
@@ -413,10 +409,6 @@ struct RangeInfo {
413409
};
414410

415411
struct NameTranslatingInfo {
416-
<<<<<<< HEAD
417-
=======
418-
bool IsCancelled = false;
419-
>>>>>>> aad86098551240bff9af8aa6617861fdd0619c22
420412
// If nonempty, a proper Info could not be resolved (and the rest of the Info
421413
// will be empty). Clients can potentially use this to show a diagnostic
422414
// message to the user in lieu of using the empty response.
@@ -726,67 +718,37 @@ class LangSupport {
726718
unsigned Length, bool Actionables,
727719
bool CancelOnSubsequentRequest,
728720
ArrayRef<const char *> Args,
729-
<<<<<<< HEAD
730721
std::function<void(const RequestResult<CursorInfoData> &)> Receiver) = 0;
731-
=======
732-
std::function<void(const CursorInfoData &,
733-
StringRef Error)> Receiver) = 0;
734-
>>>>>>> aad86098551240bff9af8aa6617861fdd0619c22
735722

736723

737724
virtual void getNameInfo(StringRef Filename, unsigned Offset,
738725
NameTranslatingInfo &Input,
739726
ArrayRef<const char *> Args,
740-
<<<<<<< HEAD
741727
std::function<void(const RequestResult<NameTranslatingInfo> &)> Receiver) = 0;
742-
=======
743-
std::function<void(const NameTranslatingInfo &,
744-
StringRef Error)> Receiver) = 0;
745-
>>>>>>> aad86098551240bff9af8aa6617861fdd0619c22
746728

747729
virtual void getRangeInfo(StringRef Filename, unsigned Offset, unsigned Length,
748730
bool CancelOnSubsequentRequest,
749731
ArrayRef<const char *> Args,
750-
<<<<<<< HEAD
751732
std::function<void(const RequestResult<RangeInfo> &)> Receiver) = 0;
752-
=======
753-
std::function<void(const RangeInfo&,
754-
StringRef Error)> Receiver) = 0;
755-
>>>>>>> aad86098551240bff9af8aa6617861fdd0619c22
756733

757734
virtual void
758735
getCursorInfoFromUSR(StringRef Filename, StringRef USR,
759736
bool CancelOnSubsequentRequest,
760737
ArrayRef<const char *> Args,
761-
<<<<<<< HEAD
762-
std::function<void(const RequestResult<CursorInfoData> &)> Receiver) = 0;
763-
=======
764-
std::function<void(const CursorInfoData &,
765-
StringRef Error)> Receiver) = 0;
766-
>>>>>>> aad86098551240bff9af8aa6617861fdd0619c22
738+
std::function<void(const RequestResult<CursorInfoData> &)> Receiver) = 0;
767739

768740
virtual void findRelatedIdentifiersInFile(StringRef Filename,
769741
unsigned Offset,
770742
bool CancelOnSubsequentRequest,
771743
ArrayRef<const char *> Args,
772-
<<<<<<< HEAD
773744
std::function<void(const RequestResult<RelatedIdentsInfo> &)> Receiver) = 0;
774-
=======
775-
std::function<void(const RelatedIdentsInfo &,
776-
StringRef Error)> Receiver) = 0;
777-
>>>>>>> aad86098551240bff9af8aa6617861fdd0619c22
778745

779746
virtual llvm::Optional<std::pair<unsigned, unsigned>>
780747
findUSRRange(StringRef DocumentName, StringRef USR) = 0;
781748

782749
virtual void findInterfaceDocument(StringRef ModuleName,
783750
ArrayRef<const char *> Args,
784-
<<<<<<< HEAD
785751
std::function<void(const RequestResult<InterfaceDocInfo> &)> Receiver) = 0;
786-
=======
787-
std::function<void(const InterfaceDocInfo &,
788-
StringRef Error)> Receiver) = 0;
789-
>>>>>>> aad86098551240bff9af8aa6617861fdd0619c22
790752

791753
virtual void findModuleGroups(StringRef ModuleName,
792754
ArrayRef<const char *> Args,
@@ -813,13 +775,8 @@ class LangSupport {
813775
virtual void collectExpressionTypes(StringRef FileName,
814776
ArrayRef<const char *> Args,
815777
ArrayRef<const char *> ExpectedProtocols,
816-
<<<<<<< HEAD
817778
std::function<void(const
818779
RequestResult<ExpressionTypesInFile> &)> Receiver) = 0;
819-
=======
820-
std::function<void(const ExpressionTypesInFile&,
821-
StringRef Error)> Receiver) = 0;
822-
>>>>>>> aad86098551240bff9af8aa6617861fdd0619c22
823780

824781
virtual void getDocInfo(llvm::MemoryBuffer *InputBuf,
825782
StringRef ModuleName,

tools/SourceKit/lib/SwiftLang/SwiftEditorInterfaceGen.cpp

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -834,12 +834,7 @@ void SwiftLangSupport::editorOpenHeaderInterface(EditorConsumer &Consumer,
834834

835835
void SwiftLangSupport::findInterfaceDocument(StringRef ModuleName,
836836
ArrayRef<const char *> Args,
837-
<<<<<<< HEAD
838837
std::function<void(const RequestResult<InterfaceDocInfo> &)> Receiver) {
839-
=======
840-
std::function<void(const InterfaceDocInfo &,
841-
StringRef Error)> Receiver) {
842-
>>>>>>> aad86098551240bff9af8aa6617861fdd0619c22
843838
InterfaceDocInfo Info;
844839

845840
CompilerInstance CI;
@@ -851,11 +846,7 @@ void SwiftLangSupport::findInterfaceDocument(StringRef ModuleName,
851846
std::string Error;
852847
if (getASTManager()->initCompilerInvocation(Invocation, Args, CI.getDiags(),
853848
StringRef(), Error)) {
854-
<<<<<<< HEAD
855849
return Receiver(RequestResult<InterfaceDocInfo>::fromError(Error));
856-
=======
857-
return Receiver({}, Error);
858-
>>>>>>> aad86098551240bff9af8aa6617861fdd0619c22
859850
}
860851

861852
if (auto IFaceGenRef = IFaceGenContexts.find(ModuleName, Invocation))
@@ -913,9 +904,5 @@ void SwiftLangSupport::findInterfaceDocument(StringRef ModuleName,
913904
}
914905
Info.CompilerArgs = NewArgs;
915906

916-
<<<<<<< HEAD
917907
return Receiver(RequestResult<InterfaceDocInfo>::fromResult(Info));
918-
=======
919-
return Receiver(Info, "");
920-
>>>>>>> aad86098551240bff9af8aa6617861fdd0619c22
921908
}

0 commit comments

Comments
 (0)