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

Unified Diff: pkg/analysis_server/lib/src/services/correction/fix_internal.dart

Issue 2720013002: Await in DefaultFixContributor.internalComputeFixes() to catch exceptions. (Closed)
Patch Set: Created 3 years, 10 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analysis_server/lib/src/services/correction/fix_internal.dart
diff --git a/pkg/analysis_server/lib/src/services/correction/fix_internal.dart b/pkg/analysis_server/lib/src/services/correction/fix_internal.dart
index 7f7f986e84c6d567fdf08e82e60b131ee0b0109a..9c19900a1d90f438e6406a8226d635e2ce24c6e2 100644
--- a/pkg/analysis_server/lib/src/services/correction/fix_internal.dart
+++ b/pkg/analysis_server/lib/src/services/correction/fix_internal.dart
@@ -78,7 +78,8 @@ class DefaultFixContributor extends DartFixContributor {
Future<List<Fix>> internalComputeFixes(DartFixContext context) async {
try {
FixProcessor processor = new FixProcessor(context);
- return processor.compute();
+ List<Fix> fixes = await processor.compute();
+ return fixes;
} on CancelCorrectionException {
return Fix.EMPTY_LIST;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698