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

Unified Diff: pkg/analysis_server/benchmark/perf/analysis_timing_tests.dart

Issue 2344933002: Fix recently introduced strong-mode errors (Closed)
Patch Set: Created 4 years, 3 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/benchmark/perf/analysis_timing_tests.dart
diff --git a/pkg/analysis_server/benchmark/perf/analysis_timing_tests.dart b/pkg/analysis_server/benchmark/perf/analysis_timing_tests.dart
index 3e3af149490f18db2d7157fd4dd079002ea3d151..60aaa7201b996a20691e8a29b9fa131cb81c0deb 100644
--- a/pkg/analysis_server/benchmark/perf/analysis_timing_tests.dart
+++ b/pkg/analysis_server/benchmark/perf/analysis_timing_tests.dart
@@ -44,7 +44,7 @@ main(List<String> arguments) {
test = new SubscriptionTimingTest();
}
- Future.wait([test.test_timing()]);
+ Future.wait(<Future>[test.test_timing()]);
Jennifer Messerly 2016/09/15 21:00:33 maybe put a type on "var test" above? Then it woul
Brian Wilkerson 2016/09/15 21:37:26 The superclass of those two classes doesn't define
}
const DEFAULT_METRIC = 'analysis';
@@ -103,8 +103,8 @@ class Metric {
class SubscriptionTimingTest extends AbstractTimingTest {
List<Metric> _metrics;
- List<Metric> get metrics =>
- _metrics ??= metricNames.map((name) => getMetric(name)).toList();
+ List<Metric> get metrics => _metrics ??=
+ new List<Metric>.from(metricNames.map((name) => getMetric(name)));
Jennifer Messerly 2016/09/15 21:00:33 any idea what happened here? it doesn't look like
Brian Wilkerson 2016/09/15 21:37:26 Nope. I tried to reproduce the error and couldn't,
Metric getMetric(String name) {
switch (name) {
« no previous file with comments | « no previous file | pkg/analysis_server/test/context_manager_test.dart » ('j') | pkg/analyzer/test/src/task/dart_test.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698