File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
tools/SourceKit/lib/SwiftLang Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -2523,8 +2523,11 @@ void SwiftLangSupport::findRelatedIdentifiersInFile(
2523
2523
2524
2524
// FIXME: Don't silently eat errors here.
2525
2525
void handlePrimaryAST (ASTUnitRef AstUnit) override {
2526
+ using ResultType = RequestResult<ArrayRef<RelatedIdentInfo>>;
2526
2527
#if !SWIFT_BUILD_SWIFT_SYNTAX
2527
- Receiver (RequestResult<RelatedIdentsInfo>::fromError (" relatedidents is not supported because sourcekitd was built without swift-syntax" ));
2528
+ Receiver (
2529
+ ResultType::fromError (" relatedidents is not supported because "
2530
+ " sourcekitd was built without swift-syntax" ));
2528
2531
return ;
2529
2532
#else
2530
2533
auto &CompInst = AstUnit->getCompilerInstance ();
@@ -2597,7 +2600,7 @@ void SwiftLangSupport::findRelatedIdentifiersInFile(
2597
2600
}
2598
2601
};
2599
2602
Action ();
2600
- Receiver (RequestResult<ArrayRef<RelatedIdentInfo>> ::fromResult (Ranges));
2603
+ Receiver (ResultType ::fromResult (Ranges));
2601
2604
#endif
2602
2605
}
2603
2606
You can’t perform that action at this time.
0 commit comments