mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[SourceKit] Allow cursorinfo to take a USR instead of an offset
This eventually calls the code from ReconstructType to try to find the Decl for a USR. For now, only works in a file, not a generated interface. rdar://problem/25017817
This commit is contained in:
@@ -354,6 +354,10 @@ public:
|
||||
ArrayRef<const char *> Args,
|
||||
std::function<void(const CursorInfo &)> Receiver) override;
|
||||
|
||||
void getCursorInfoFromUSR(
|
||||
StringRef Filename, StringRef USR, ArrayRef<const char *> Args,
|
||||
std::function<void(const CursorInfo &)> Receiver) override;
|
||||
|
||||
void findRelatedIdentifiersInFile(StringRef Filename, unsigned Offset,
|
||||
ArrayRef<const char *> Args,
|
||||
std::function<void(const RelatedIdentsInfo &)> Receiver) override;
|
||||
|
||||
Reference in New Issue
Block a user