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

Unified Diff: tests/compiler/dart2js_extra/mirror_printer_test.dart

Issue 2345083003: dart2js: run dartfmt on tests (Closed)
Patch Set: revert another multipart test 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: tests/compiler/dart2js_extra/mirror_printer_test.dart
diff --git a/tests/compiler/dart2js_extra/mirror_printer_test.dart b/tests/compiler/dart2js_extra/mirror_printer_test.dart
index 72e48784e0d8efd0f77c5e0486e01548da42fdb4..bc40d4d01d7cea48a809ef6f33e709595a4a9948 100644
--- a/tests/compiler/dart2js_extra/mirror_printer_test.dart
+++ b/tests/compiler/dart2js_extra/mirror_printer_test.dart
@@ -51,15 +51,16 @@ class MirrorPrinter {
String stringifyInstance(InstanceMirror mirror) {
var reflectee = mirror.reflectee;
if (reflectee is String) return '"${reflectee}"';
- if (reflectee is Null || reflectee is bool || reflectee is num ||
- reflectee is List || reflectee is Map) {
+ if (reflectee is Null ||
+ reflectee is bool ||
+ reflectee is num ||
+ reflectee is List ||
+ reflectee is Map) {
return '$reflectee';
}
StringBuffer buffer = new StringBuffer();
Map<Symbol, DeclarationMirror> declarations = mirror.type.declarations;
- buffer
- ..write(n(mirror.type.simpleName))
- ..write('(');
+ buffer..write(n(mirror.type.simpleName))..write('(');
bool first = true;
declarations.forEach((Symbol name, DeclarationMirror declaration) {
if (declaration is! VariableMirror) return;
@@ -72,9 +73,9 @@ class MirrorPrinter {
buffer.write(', ');
}
buffer
- ..write(n(name))
- ..write(': ')
- ..write(stringifyInstance(mirror.getField(name)));
+ ..write(n(name))
+ ..write(': ')
+ ..write(stringifyInstance(mirror.getField(name)));
});
buffer.write(')');
return buffer.toString();
@@ -168,7 +169,7 @@ class MirrorPrinter {
writeLibrary(LibraryMirror library) {
w('library ${n(library.simpleName)};\n\n');
library.declarations.values
- .where((d)=> d is! TypeMirror)
+ .where((d) => d is! TypeMirror)
.forEach(writeDeclaration);
w('\n');
}

Powered by Google App Engine
This is Rietveld 408576698