|
15 | 15 | #include "swift/AST/ASTContext.h"
|
16 | 16 | #include "swift/AST/ASTDemangler.h"
|
17 | 17 | #include "swift/AST/ASTMangler.h"
|
| 18 | +#include "swift/AST/ASTWalker.h" |
18 | 19 | #include "swift/AST/DebuggerClient.h"
|
19 | 20 | #include "swift/AST/Decl.h"
|
20 | 21 | #include "swift/AST/DiagnosticEngine.h"
|
|
27 | 28 | #include "swift/AST/ModuleLoader.h"
|
28 | 29 | #include "swift/AST/NameLookup.h"
|
29 | 30 | #include "swift/AST/OperatorNameLookup.h"
|
| 31 | +#include "swift/AST/PluginLoader.h" |
30 | 32 | #include "swift/AST/SearchPathOptions.h"
|
31 | 33 | #include "swift/AST/SubstitutionMap.h"
|
32 | 34 | #include "swift/AST/Type.h"
|
33 | 35 | #include "swift/AST/Types.h"
|
34 |
| -#include "swift/AST/ASTWalker.h" |
35 | 36 | #include "swift/ASTSectionImporter/ASTSectionImporter.h"
|
36 | 37 | #include "swift/Basic/DiagnosticOptions.h"
|
37 | 38 | #include "swift/Basic/Dwarf.h"
|
@@ -3084,6 +3085,10 @@ swift::ASTContext *SwiftASTContext::GetASTContext() {
|
3084 | 3085 | m_clangimporter->getClangASTContext());
|
3085 | 3086 | }
|
3086 | 3087 |
|
| 3088 | + // Set up the plugin loader. |
| 3089 | + m_ast_context_ap->setPluginLoader(std::make_unique<swift::PluginLoader>( |
| 3090 | + *m_ast_context_ap, m_dependency_tracker.get())); |
| 3091 | + |
3087 | 3092 | // Set up the required state for the evaluator in the TypeChecker.
|
3088 | 3093 | registerIDERequestFunctions(m_ast_context_ap->evaluator);
|
3089 | 3094 | registerParseRequestFunctions(m_ast_context_ap->evaluator);
|
|
0 commit comments