Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(82)

Unified Diff: pkg/analysis_server/lib/src/services/index/index_store.dart

Issue 1168473003: Issue 23573. Catch exception during indexing. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Clean index information for the current Dart unit on exception. Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: pkg/analysis_server/lib/src/services/index/index_store.dart
diff --git a/pkg/analysis_server/lib/src/services/index/index_store.dart b/pkg/analysis_server/lib/src/services/index/index_store.dart
index 1d61e7a4f0618420ff2ceefe121ddbcda329e7a2..858d0ac1b02fcac4108b32823e5a5c511ed34705 100644
--- a/pkg/analysis_server/lib/src/services/index/index_store.dart
+++ b/pkg/analysis_server/lib/src/services/index/index_store.dart
@@ -51,7 +51,14 @@ abstract class InternalIndexStore extends IndexStore {
bool aboutToIndexHtml(AnalysisContext context, HtmlElement htmlElement);
/**
- * Notifies that index store that the current Dart or HTML unit indexing is
+ * Notifies the index store that there was an error during the current Dart
+ * indexing, and all the information recorded after the last
+ * [aboutToIndexDart] invocation must be discarded.
+ */
+ void cancelIndexDart();
+
+ /**
+ * Notifies the index store that the current Dart or HTML unit indexing is
* done.
*
* If this method is not invoked after corresponding "aboutToIndex*"

Powered by Google App Engine
This is Rietveld 408576698