[index] Use the index symbol types and APIs from the clang header.

This avoids duplication and centralizes handling of symbols.
This commit is contained in:
Argyrios Kyrtzidis
2017-01-10 14:49:07 -08:00
parent e2c9e246d7
commit db8ec19f55
10 changed files with 245 additions and 359 deletions

View File

@@ -250,8 +250,7 @@ public:
static SourceKit::UIdent getUIDForSyntaxStructureElementKind(
swift::ide::SyntaxStructureElementKind Kind);
static SourceKit::UIdent getUIDForSymbol(swift::index::SymbolKind kind,
swift::index::SymbolSubKindSet subKinds,
static SourceKit::UIdent getUIDForSymbol(swift::index::SymbolInfo sym,
bool isRef);
static SourceKit::UIdent getUIDForRangeKind(swift::ide::RangeKind Kind);