Skip to content

Commit 8561407

Browse files
committed
SourceKit: Register type checker request functions
Some requests are implemented in lib/Sema/, even if they don't require a LazyResolver. Be sure to register their request functions in SourceKit so that these requests can be kicked off when needed.
1 parent ac9a3bf commit 8561407

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tools/SourceKit/lib/SwiftLang/SwiftEditor.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -706,6 +706,8 @@ class SwiftDocumentSyntaxInfo {
706706
CompInv.getMainFileSyntaxParsingCache())
707707
);
708708

709+
registerTypeCheckerRequestFunctions(
710+
Parser->getParser().Context.evaluator);
709711
Parser->getDiagnosticEngine().addConsumer(DiagConsumer);
710712

711713
// Collecting syntactic information shouldn't evaluate # conditions.

0 commit comments

Comments
 (0)