Skip to content
This repository was archived by the owner on Apr 2, 2020. It is now read-only.

Commit 369bde7

Browse files
authored
Merge pull request #2035 from slavapestov/register-type-checker-requests
[Swift] The ASTContext for expression evaluation might need to perform type checking
2 parents 3548d52 + 23b7787 commit 369bde7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

source/Plugins/ExpressionParser/Swift/SwiftREPL.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -555,6 +555,8 @@ int SwiftREPL::CompleteCode(const std::string &current_code,
555555
m_swift_ast_sp.reset(new SwiftASTContext(*target_swift_ast));
556556
swift::registerIDERequestFunctions(
557557
m_swift_ast_sp.get()->GetASTContext()->evaluator);
558+
swift::registerTypeCheckerRequestFunctions(
559+
m_swift_ast_sp.get()->GetASTContext()->evaluator);
558560
}
559561
SwiftASTContext *swift_ast = m_swift_ast_sp.get();
560562

0 commit comments

Comments
 (0)