[Refactoring] Separate refactoring files to its own library

IDE/Refactoring had dependencies to libswiftIndex, but libswiftIndex
also depends on libswiftIDE (SourceEntityWalker, etc.)

To break libswiftIndex <-> libswiftIDE dependency cycle, move
"refactoring" related files to a new library 'libswiftRefactoring'

rdar://101692282
This commit is contained in:
Rintaro Ishizaki
2022-11-02 12:04:29 -07:00
parent 0a2b10b777
commit 45828af5ed
18 changed files with 41 additions and 27 deletions

View File

@@ -62,7 +62,7 @@ using swift::index::SymbolRoleSet;
#include "SourceKit/Core/ProtocolUIDs.def"
#define REFACTORING(KIND, NAME, ID) static UIdent Kind##Refactoring##KIND("source.refactoring.kind."#ID);
#include "swift/IDE/RefactoringKinds.def"
#include "swift/Refactoring/RefactoringKinds.def"
static UIdent Attr_IBAction("source.decl.attribute.ibaction");
static UIdent Attr_IBOutlet("source.decl.attribute.iboutlet");
@@ -377,7 +377,7 @@ UIdent SwiftLangSupport::getUIDForRefactoringKind(ide::RefactoringKind Kind){
case ide::RefactoringKind::None: llvm_unreachable("cannot end up here.");
#define REFACTORING(KIND, NAME, ID) \
case ide::RefactoringKind::KIND: return KindRefactoring##KIND;
#include "swift/IDE/RefactoringKinds.def"
#include "swift/Refactoring/RefactoringKinds.def"
}
}