| Index: tests/compiler/dart2js_extra/lookup_map/live_entry_through_mirrors_test.dart
|
| diff --git a/tests/compiler/dart2js_extra/lookup_map/live_entry_through_mirrors_test.dart b/tests/compiler/dart2js_extra/lookup_map/live_entry_through_mirrors_test.dart
|
| index 9ad99cfc0fd05d4e21dc2f3e89df35d597217a7a..aec89c4e9420234bf9035be177baa2380bba1802 100644
|
| --- a/tests/compiler/dart2js_extra/lookup_map/live_entry_through_mirrors_test.dart
|
| +++ b/tests/compiler/dart2js_extra/lookup_map/live_entry_through_mirrors_test.dart
|
| @@ -8,12 +8,11 @@ import 'package:lookup_map/lookup_map.dart';
|
| import 'package:expect/expect.dart';
|
| import 'dart:mirrors';
|
|
|
| -class A{}
|
| -class B{}
|
| -const map = const LookupMap(const [
|
| - A, "the-text-for-A",
|
| - B, "the-text-for-B",
|
| -]);
|
| +class A {}
|
| +
|
| +class B {}
|
| +
|
| +const map = const LookupMap(const [A, "the-text-for-A", B, "the-text-for-B",]);
|
|
|
| main() {
|
| // `A` is referenced explicitly, so its entry should be retained regardless.
|
| @@ -22,8 +21,8 @@ main() {
|
|
|
| // `B` is used via mirrors. Because no @MirrorsUsed was found that's enough to
|
| // retain the entry.
|
| - LibraryMirror lib = currentMirrorSystem().findLibrary(
|
| - #live_entry_through_mirrors_test);
|
| + LibraryMirror lib =
|
| + currentMirrorSystem().findLibrary(#live_entry_through_mirrors_test);
|
| ClassMirror bClass = lib.declarations[#B];
|
| Expect.equals(map[bClass.reflectedType], "the-text-for-B");
|
| }
|
|
|