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

Unified Diff: tests/compiler/dart2js/analyze_helper.dart

Issue 2939063002: Strong mode cleaning of many dart2js tests. (Closed)
Patch Set: Use ClassElement. Created 3 years, 6 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: tests/compiler/dart2js/analyze_helper.dart
diff --git a/tests/compiler/dart2js/analyze_helper.dart b/tests/compiler/dart2js/analyze_helper.dart
index 779f389a547892c8f086793b9d83e5c0d711fa34..6c83521dcde9b57068feda151b1e0d2ac13d262d 100644
--- a/tests/compiler/dart2js/analyze_helper.dart
+++ b/tests/compiler/dart2js/analyze_helper.dart
@@ -39,18 +39,19 @@ class CollectingDiagnosticHandler extends FormattingDiagnosticHandler {
bool lastWasWhitelisted = false;
bool showWhitelisted = true;
- Map<String, Map<dynamic /*String|MessageKind*/, int>> whiteListMap =
- new Map<String, Map<dynamic /*String|MessageKind*/, int>>();
+ Map<String, Map<dynamic /* String|MessageKind */, int>> whiteListMap =
+ new Map<String, Map<dynamic /* String|MessageKind */, int>>();
List<MessageKind> skipList;
List<CollectedMessage> collectedMessages = <CollectedMessage>[];
CollectingDiagnosticHandler(
- Map<String, List/*<String|MessageKind>*/ > whiteList,
+ Map<String, List /* <String|MessageKind> */ > whiteList,
this.skipList,
SourceFileProvider provider)
: super(provider) {
- whiteList.forEach((String file, List/*<String|MessageKind>*/ messageParts) {
- var useMap = new Map<dynamic /*String|MessageKind*/, int>();
+ whiteList
+ .forEach((String file, List /* <String|MessageKind> */ messageParts) {
+ var useMap = new Map<dynamic /* String|MessageKind */, int>();
for (var messagePart in messageParts) {
useMap[messagePart] = 0;
}
@@ -202,7 +203,7 @@ enum AnalysisMode {
/// Messages can be generally allowed using [skipList] or on a per-file basis
/// using [whiteList].
Future analyze(
- List<Uri> uriList, Map<String, List/*<String|MessageKind>*/ > whiteList,
+ List<Uri> uriList, Map<String, List /* <String|MessageKind> */ > whiteList,
{AnalysisMode mode: AnalysisMode.ALL,
CheckResults checkResults,
List<String> options: const <String>[],

Powered by Google App Engine
This is Rietveld 408576698