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

Unified Diff: pkg/analysis_server/test/analysis/update_content_test.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
Index: pkg/analysis_server/test/analysis/update_content_test.dart
diff --git a/pkg/analysis_server/test/analysis/update_content_test.dart b/pkg/analysis_server/test/analysis/update_content_test.dart
index a2ae03b8589068bb14e2cfc4d1a108be4c4b7986..6ab4706202b1d628e98bc0263aeca35f316e6fe5 100644
--- a/pkg/analysis_server/test/analysis/update_content_test.dart
+++ b/pkg/analysis_server/test/analysis/update_content_test.dart
@@ -30,7 +30,7 @@ compilationUnitMatcher(String file) {
@reflectiveTest
class UpdateContentTest extends AbstractAnalysisTest {
- Map<String, List<AnalysisError>> filesErrors = {};
+ Map<String, List<String>> filesErrors = {};
int serverErrorCount = 0;
int navigationCount = 0;
@@ -42,7 +42,8 @@ class UpdateContentTest extends AbstractAnalysisTest {
void processNotification(Notification notification) {
if (notification.event == ANALYSIS_ERRORS) {
var decoded = new AnalysisErrorsParams.fromNotification(notification);
- _format(AnalysisError e) => "${e.location.startLine}: ${e.message}";
+ String _format(AnalysisError e) =>
+ "${e.location.startLine}: ${e.message}";
filesErrors[decoded.file] = decoded.errors.map(_format).toList();
}
if (notification.event == ANALYSIS_NAVIGATION) {
« no previous file with comments | « pkg/analysis_server/lib/src/status/get_handler.dart ('k') | pkg/analysis_server/test/protocol_server_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698