[SourceKit] Make SwiftASTConsumer::failed pure virtual

Previously, if a semantic tokens request or diagnostic request failed, we wouldn’t return any response.
This commit is contained in:
Alex Hoppen
2024-08-12 12:45:59 -07:00
parent 1d485486e1
commit 84c0d13b30
4 changed files with 11 additions and 3 deletions

View File

@@ -223,7 +223,7 @@ public:
/// Creation of the AST failed due to \p Error. The request corresponding to
/// this consumer should fail.
virtual void failed(StringRef Error);
virtual void failed(StringRef Error) = 0;
/// The consumer was cancelled by the \c requestCancellation method and the \c
/// ASTBuildOperation creating the AST for this consumer honored the request.