Skip to content

Commit 753faaf

Browse files
authored
Merge pull request #70300 from ahoppen/ahoppen/android-build-failure
[SourceKit] Fix a build failure if `SWIFT_BUILD_SWIFT_SYNTAX` is not set
2 parents 43d8c37 + 847671b commit 753faaf

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

tools/SourceKit/lib/SwiftLang/SwiftSourceDocInfo.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2523,8 +2523,11 @@ void SwiftLangSupport::findRelatedIdentifiersInFile(
25232523

25242524
// FIXME: Don't silently eat errors here.
25252525
void handlePrimaryAST(ASTUnitRef AstUnit) override {
2526+
using ResultType = RequestResult<ArrayRef<RelatedIdentInfo>>;
25262527
#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"));
25282531
return;
25292532
#else
25302533
auto &CompInst = AstUnit->getCompilerInstance();
@@ -2597,7 +2600,7 @@ void SwiftLangSupport::findRelatedIdentifiersInFile(
25972600
}
25982601
};
25992602
Action();
2600-
Receiver(RequestResult<ArrayRef<RelatedIdentInfo>>::fromResult(Ranges));
2603+
Receiver(ResultType::fromResult(Ranges));
26012604
#endif
26022605
}
26032606

0 commit comments

Comments
 (0)