@@ -358,10 +358,6 @@ struct RefactoringInfo {
358
358
};
359
359
360
360
struct CursorInfoData {
361
- <<<<<<< HEAD
362
- =======
363
- bool IsCancelled = false ;
364
- >>>>>>> aad86098551240bff9af8aa6617861fdd0619c22
365
361
// If nonempty, a proper Info could not be resolved (and the rest of the Info
366
362
// will be empty). Clients can potentially use this to show a diagnostic
367
363
// message to the user in lieu of using the empty response.
@@ -413,10 +409,6 @@ struct RangeInfo {
413
409
};
414
410
415
411
struct NameTranslatingInfo {
416
- <<<<<<< HEAD
417
- =======
418
- bool IsCancelled = false ;
419
- >>>>>>> aad86098551240bff9af8aa6617861fdd0619c22
420
412
// If nonempty, a proper Info could not be resolved (and the rest of the Info
421
413
// will be empty). Clients can potentially use this to show a diagnostic
422
414
// message to the user in lieu of using the empty response.
@@ -726,67 +718,37 @@ class LangSupport {
726
718
unsigned Length, bool Actionables,
727
719
bool CancelOnSubsequentRequest,
728
720
ArrayRef<const char *> Args,
729
- <<<<<<< HEAD
730
721
std::function<void (const RequestResult<CursorInfoData> &)> Receiver) = 0;
731
- =======
732
- std::function<void (const CursorInfoData &,
733
- StringRef Error)> Receiver) = 0 ;
734
- >>>>>>> aad86098551240bff9af8aa6617861fdd0619c22
735
722
736
723
737
724
virtual void getNameInfo (StringRef Filename, unsigned Offset,
738
725
NameTranslatingInfo &Input,
739
726
ArrayRef<const char *> Args,
740
- <<<<<<< HEAD
741
727
std::function<void (const RequestResult<NameTranslatingInfo> &)> Receiver) = 0;
742
- =======
743
- std::function<void (const NameTranslatingInfo &,
744
- StringRef Error)> Receiver) = 0 ;
745
- >>>>>>> aad86098551240bff9af8aa6617861fdd0619c22
746
728
747
729
virtual void getRangeInfo (StringRef Filename, unsigned Offset, unsigned Length,
748
730
bool CancelOnSubsequentRequest,
749
731
ArrayRef<const char *> Args,
750
- <<<<<<< HEAD
751
732
std::function<void (const RequestResult<RangeInfo> &)> Receiver) = 0;
752
- =======
753
- std::function<void (const RangeInfo&,
754
- StringRef Error)> Receiver) = 0 ;
755
- >>>>>>> aad86098551240bff9af8aa6617861fdd0619c22
756
733
757
734
virtual void
758
735
getCursorInfoFromUSR (StringRef Filename, StringRef USR,
759
736
bool CancelOnSubsequentRequest,
760
737
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 ;
767
739
768
740
virtual void findRelatedIdentifiersInFile (StringRef Filename,
769
741
unsigned Offset,
770
742
bool CancelOnSubsequentRequest,
771
743
ArrayRef<const char *> Args,
772
- <<<<<<< HEAD
773
744
std::function<void (const RequestResult<RelatedIdentsInfo> &)> Receiver) = 0;
774
- =======
775
- std::function<void (const RelatedIdentsInfo &,
776
- StringRef Error)> Receiver) = 0 ;
777
- >>>>>>> aad86098551240bff9af8aa6617861fdd0619c22
778
745
779
746
virtual llvm::Optional<std::pair<unsigned , unsigned >>
780
747
findUSRRange (StringRef DocumentName, StringRef USR) = 0 ;
781
748
782
749
virtual void findInterfaceDocument (StringRef ModuleName,
783
750
ArrayRef<const char *> Args,
784
- <<<<<<< HEAD
785
751
std::function<void (const RequestResult<InterfaceDocInfo> &)> Receiver) = 0;
786
- =======
787
- std::function<void (const InterfaceDocInfo &,
788
- StringRef Error)> Receiver) = 0 ;
789
- >>>>>>> aad86098551240bff9af8aa6617861fdd0619c22
790
752
791
753
virtual void findModuleGroups (StringRef ModuleName,
792
754
ArrayRef<const char *> Args,
@@ -813,13 +775,8 @@ class LangSupport {
813
775
virtual void collectExpressionTypes (StringRef FileName,
814
776
ArrayRef<const char *> Args,
815
777
ArrayRef<const char *> ExpectedProtocols,
816
- <<<<<<< HEAD
817
778
std::function<void (const
818
779
RequestResult<ExpressionTypesInFile> &)> Receiver) = 0;
819
- =======
820
- std::function<void (const ExpressionTypesInFile&,
821
- StringRef Error)> Receiver) = 0 ;
822
- >>>>>>> aad86098551240bff9af8aa6617861fdd0619c22
823
780
824
781
virtual void getDocInfo (llvm::MemoryBuffer *InputBuf,
825
782
StringRef ModuleName,
0 commit comments