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

Unified Diff: pkg/analysis_server/test/services/completion/dart/completion_contributor_util.dart

Issue 1852113002: More strong mode changes in analysis_server (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 4 years, 9 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 | « pkg/analysis_server/test/protocol_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analysis_server/test/services/completion/dart/completion_contributor_util.dart
diff --git a/pkg/analysis_server/test/services/completion/dart/completion_contributor_util.dart b/pkg/analysis_server/test/services/completion/dart/completion_contributor_util.dart
index 549c8f1eb2d44fc3f8336d9f6428d53ee4edb92e..9589874826fa03ce6252c3844e662fb9c6e18f71 100644
--- a/pkg/analysis_server/test/services/completion/dart/completion_contributor_util.dart
+++ b/pkg/analysis_server/test/services/completion/dart/completion_contributor_util.dart
@@ -519,9 +519,13 @@ abstract class DartCompletionContributorTest extends AbstractContextTest {
return cs;
}
- Future performAnalysis(int times, Completer completer) {
- if (completer.isCompleted) return completer.future;
- if (times == 0 || context == null) return new Future.value();
+ Future/*<E>*/ performAnalysis/*<E>*/(int times, Completer/*<E>*/ completer) {
+ if (completer.isCompleted) {
+ return completer.future;
+ }
+ if (times == 0 || context == null) {
+ return new Future.value();
+ }
context.performAnalysisTask();
// We use a delayed future to allow microtask events to finish. The
// Future.value or Future() constructors use scheduleMicrotask themselves and
« no previous file with comments | « pkg/analysis_server/test/protocol_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698