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