| Index: test_reflectable/test/metadata_test.dart
|
| diff --git a/test_reflectable/test/metadata_test.dart b/test_reflectable/test/metadata_test.dart
|
| index fcd0a3bbe1208ec99169090e80d27c4de8ca9cf5..8c9d39036d2b1c2ac6f12dff3d830ef87a7ff756 100644
|
| --- a/test_reflectable/test/metadata_test.dart
|
| +++ b/test_reflectable/test/metadata_test.dart
|
| @@ -11,8 +11,9 @@ import 'package:reflectable/reflectable.dart';
|
| import 'package:unittest/unittest.dart';
|
|
|
| class MyReflectable extends Reflectable {
|
| - const MyReflectable() : super(
|
| - metadataCapability, instanceInvokeCapability, staticInvokeCapability);
|
| + const MyReflectable()
|
| + : super(metadataCapability, instanceInvokeCapability,
|
| + staticInvokeCapability, declarationsCapability);
|
| }
|
|
|
| const myReflectable = const MyReflectable();
|
| @@ -25,7 +26,9 @@ class MyReflectable2 extends Reflectable {
|
| const myReflectable2 = const MyReflectable2();
|
|
|
| const b = 13;
|
| -const c = const [const Bar(const {"a": 14})];
|
| +const c = const [
|
| + const Bar(const {"a": 14})
|
| +];
|
| const d = true;
|
|
|
| class K {
|
| @@ -81,13 +84,17 @@ main() {
|
| 2: 6
|
| }),
|
| 13,
|
| - const [const Bar(const {"a": 14})]
|
| + const [
|
| + const Bar(const {"a": 14})
|
| + ]
|
| ]);
|
|
|
| expect(myReflectable.reflectType(Foo).declarations["foo"].metadata, [
|
| const Bar(const {}),
|
| 13,
|
| - const [const Bar(const {"a": 14})]
|
| + const [
|
| + const Bar(const {"a": 14})
|
| + ]
|
| ]);
|
|
|
| expect(myReflectable.reflectType(Foo).declarations["x"].metadata, [b]);
|
|
|