@@ -396,12 +396,12 @@ class SwiftLangSupport : public LangSupport {
396
396
void setFileSystemProvider (StringRef Name, std::unique_ptr<FileSystemProvider> FileSystemProvider);
397
397
398
398
// / Returns the filesystem appropriate to use in a request with the given
399
- // / \p vfsOptions and \p primaryFile .
399
+ // / \p vfsOptions and \p inputFile .
400
400
// /
401
401
// / If \p vfsOptions is provided, returns a virtual filesystem created from
402
402
// / a registered FileSystemProvider, or nullptr if there is an error.
403
403
// /
404
- // / If \p vfsOptions is None and \p primaryFile is provided, returns the
404
+ // / If \p vfsOptions is None and \p inputFile is provided, returns the
405
405
// / virtual filesystem associated with that editor document, if any.
406
406
// /
407
407
// / Otherwise, returns the real filesystem.
@@ -411,7 +411,7 @@ class SwiftLangSupport : public LangSupport {
411
411
// / \param error Set to a description of the error, if appropriate.
412
412
llvm::IntrusiveRefCntPtr<llvm::vfs::FileSystem>
413
413
getFileSystem (const Optional<VFSOptions> &vfsOptions,
414
- Optional<StringRef> primaryFile , std::string &error);
414
+ Optional<StringRef> inputFile , std::string &error);
415
415
416
416
static SourceKit::UIdent getUIDForDeclLanguage (const swift::Decl *D);
417
417
static SourceKit::UIdent getUIDForDecl (const swift::Decl *D,
@@ -632,9 +632,9 @@ class SwiftLangSupport : public LangSupport {
632
632
void editorExpandPlaceholder (StringRef Name, unsigned Offset, unsigned Length,
633
633
EditorConsumer &Consumer) override ;
634
634
635
- void getCursorInfo (StringRef Filename, unsigned Offset, unsigned Length ,
636
- bool Actionables, bool SymbolGraph ,
637
- bool CancelOnSubsequentRequest,
635
+ void getCursorInfo (StringRef PrimaryFile, StringRef InputFile ,
636
+ unsigned Offset, unsigned Length, bool Actionables ,
637
+ bool SymbolGraph, bool CancelOnSubsequentRequest,
638
638
ArrayRef<const char *> Args,
639
639
Optional<VFSOptions> vfsOptions,
640
640
SourceKitCancellationToken CancellationToken,
@@ -655,26 +655,28 @@ class SwiftLangSupport : public LangSupport {
655
655
override ;
656
656
657
657
void getRangeInfo (
658
- StringRef Filename, unsigned Offset , unsigned Length ,
659
- bool CancelOnSubsequentRequest, ArrayRef< const char *> Args ,
660
- SourceKitCancellationToken CancellationToken,
658
+ StringRef PrimaryFile, StringRef InputFile , unsigned Offset ,
659
+ unsigned Length, bool CancelOnSubsequentRequest ,
660
+ ArrayRef< const char *> Args, SourceKitCancellationToken CancellationToken,
661
661
std::function<void (const RequestResult<RangeInfo> &)> Receiver) override ;
662
662
663
663
void getCursorInfoFromUSR (
664
- StringRef Filename, StringRef USR, bool CancelOnSubsequentRequest,
665
- ArrayRef<const char *> Args, Optional<VFSOptions> vfsOptions,
664
+ StringRef PrimaryFile, StringRef InputFile, StringRef USR,
665
+ bool CancelOnSubsequentRequest, ArrayRef<const char *> Args,
666
+ Optional<VFSOptions> vfsOptions,
666
667
SourceKitCancellationToken CancellationToken,
667
668
std::function<void (const RequestResult<CursorInfoData> &)> Receiver)
668
669
override ;
669
670
670
671
void findRelatedIdentifiersInFile (
671
- StringRef Filename, unsigned Offset, bool CancelOnSubsequentRequest,
672
- ArrayRef<const char *> Args, SourceKitCancellationToken CancellationToken,
672
+ StringRef PrimaryFile, StringRef InputFile, unsigned Offset,
673
+ bool CancelOnSubsequentRequest, ArrayRef<const char *> Args,
674
+ SourceKitCancellationToken CancellationToken,
673
675
std::function<void (const RequestResult<RelatedIdentsInfo> &)> Receiver)
674
676
override ;
675
677
676
678
void findActiveRegionsInFile (
677
- StringRef Filename , ArrayRef<const char *> Args,
679
+ StringRef PrimaryFile, StringRef InputFile , ArrayRef<const char *> Args,
678
680
SourceKitCancellationToken CancellationToken,
679
681
std::function<void (const RequestResult<ActiveRegionsInfo> &)> Receiver)
680
682
override ;
@@ -695,14 +697,14 @@ class SwiftLangSupport : public LangSupport {
695
697
CategorizedRenameRangesReceiver Receiver) override ;
696
698
697
699
void collectExpressionTypes (
698
- StringRef FileName , ArrayRef<const char *> Args,
700
+ StringRef PrimaryFile, StringRef InputFile , ArrayRef<const char *> Args,
699
701
ArrayRef<const char *> ExpectedProtocols, bool FullyQualified,
700
702
bool CanonicalType, SourceKitCancellationToken CancellationToken,
701
703
std::function<void (const RequestResult<ExpressionTypesInFile> &)>
702
704
Receiver) override ;
703
705
704
706
void collectVariableTypes (
705
- StringRef FileName , ArrayRef<const char *> Args,
707
+ StringRef PrimaryFile, StringRef InputFile , ArrayRef<const char *> Args,
706
708
Optional<unsigned > Offset, Optional<unsigned > Length, bool FullyQualified,
707
709
SourceKitCancellationToken CancellationToken,
708
710
std::function<void (const RequestResult<VariableTypesInFile> &)> Receiver)
0 commit comments