@@ -230,27 +230,14 @@ class TUScheduler {
230
230
InvalidateOnUpdate,
231
231
};
232
232
233
- // / Error to return when an ASTActionInvalidation policy fires.
234
- class InvalidatedError : public llvm ::ErrorInfo<InvalidatedError> {
235
- public:
236
- static char ID;
237
- ASTActionInvalidation Policy;
238
-
239
- void log (llvm::raw_ostream &OS) const override ;
240
- std::error_code convertToErrorCode () const override {
241
- return std::make_error_code (std::errc::interrupted);
242
- }
243
- };
244
-
245
233
// / Schedule an async read of the AST. \p Action will be called when AST is
246
234
// / ready. The AST passed to \p Action refers to the version of \p File
247
235
// / tracked at the time of the call, even if new updates are received before
248
236
// / \p Action is executed.
249
237
// / If an error occurs during processing, it is forwarded to the \p Action
250
238
// / callback.
251
- // / If the context is cancelled before the AST is ready, the callback will
252
- // / receive a CancelledError. If the invalidation policy is triggered, the
253
- // / callback will receive an InvalidatedError.
239
+ // / If the context is cancelled before the AST is ready, or the invalidation
240
+ // / policy is triggered, the callback will receive a CancelledError.
254
241
void runWithAST (llvm::StringRef Name, PathRef File,
255
242
Callback<InputsAndAST> Action,
256
243
ASTActionInvalidation = NoInvalidation);
0 commit comments