mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Merge pull request #6677 from nathawes/swift-indexing
Add roles and relations for Swift indexing
This commit is contained in:
@@ -22,6 +22,8 @@ class IndexDataConsumer {
|
||||
virtual void anchor();
|
||||
|
||||
public:
|
||||
enum Action {Skip, Abort, Continue};
|
||||
|
||||
virtual ~IndexDataConsumer() {}
|
||||
|
||||
virtual void failed(StringRef error) = 0;
|
||||
@@ -32,8 +34,7 @@ public:
|
||||
virtual bool startDependency(SymbolKind kind, StringRef name, StringRef path,
|
||||
bool isSystem, StringRef hash) = 0;
|
||||
virtual bool finishDependency(SymbolKind kind) = 0;
|
||||
virtual bool startSourceEntity(const IndexSymbol &symbol) = 0;
|
||||
virtual bool recordRelatedEntity(const IndexSymbol &symbol) = 0;
|
||||
virtual Action startSourceEntity(const IndexSymbol &symbol) = 0;
|
||||
virtual bool finishSourceEntity(SymbolKind kind, SymbolSubKindSet subKinds,
|
||||
SymbolRoleSet roles) = 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user