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'); |
} |