mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
The code goes into its own sub-tree under 'tools' but tests go under 'test', so that running 'check-swift' will also run all the SourceKit tests. SourceKit is disabled on non-darwin platforms.
15 lines
401 B
C++
15 lines
401 B
C++
#include "SourceKit/Core/Context.h"
|
|
#include "SourceKit/Core/LangSupport.h"
|
|
#include "SourceKit/Core/NotificationCenter.h"
|
|
|
|
using namespace SourceKit;
|
|
|
|
SourceKit::Context::Context(StringRef RuntimeLibPath)
|
|
: RuntimeLibPath(RuntimeLibPath) {
|
|
NotificationCtr.reset(new NotificationCenter());
|
|
SwiftLang = std::move(LangSupport::createSwiftLangSupport(*this));
|
|
}
|
|
|
|
SourceKit::Context::~Context() {
|
|
}
|