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

Unified Diff: pkg/analysis_server/lib/src/status/get_handler.dart

Issue 2357553003: Fix newly introduced errors and warnings (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/lib/src/status/get_handler.dart
diff --git a/pkg/analysis_server/lib/src/status/get_handler.dart b/pkg/analysis_server/lib/src/status/get_handler.dart
index 99f88b3d5d556e7afde5b1540fbb6cd1d2c2ed4e..36586f43c9e0b1fd1ff877d2eda63da8a9d5a5c4 100644
--- a/pkg/analysis_server/lib/src/status/get_handler.dart
+++ b/pkg/analysis_server/lib/src/status/get_handler.dart
@@ -46,7 +46,8 @@ import 'package:analyzer/src/task/dart.dart';
import 'package:analyzer/src/task/driver.dart';
import 'package:analyzer/src/task/html.dart';
import 'package:analyzer/src/task/options.dart';
-import 'package:analyzer/src/task/options.dart' show CONFIGURED_ERROR_PROCESSORS;
+import 'package:analyzer/src/task/options.dart'
+ show CONFIGURED_ERROR_PROCESSORS;
import 'package:analyzer/task/dart.dart';
import 'package:analyzer/task/general.dart';
import 'package:analyzer/task/html.dart';
@@ -2180,8 +2181,8 @@ class GetHandler {
}
}
buffer.write('<p>element count: ');
- buffer.write(
- counter.counts.values.fold(0, (prev, element) => prev + element));
+ buffer.write(counter.counts.values
+ .fold(0, (int prev, int element) => prev + element));
buffer.write('</p>');
buffer.write('<p> (w/docs): ');
buffer.write(counter.elementsWithDocs);
@@ -2196,8 +2197,8 @@ class GetHandler {
buffer.write('SDK');
buffer.write('</h3></p>');
buffer.write('<p>element count: ');
- buffer.write(
- sdkCounter.counts.values.fold(0, (prev, element) => prev + element));
+ buffer.write(sdkCounter.counts.values
+ .fold(0, (int prev, int element) => prev + element));
buffer.write('</p>');
buffer.write('<p> (w/docs): ');
buffer.write(sdkCounter.elementsWithDocs);

Powered by Google App Engine
This is Rietveld 408576698