| OLD | NEW |
| 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 library reflectable.check_literal_transform_test; | 5 library reflectable.check_literal_transform_test; |
| 6 | 6 |
| 7 /// Test the literal output of the transformation for a few simple cases. | 7 /// Test the literal output of the transformation for a few simple cases. |
| 8 | 8 |
| 9 import "package:reflectable/test_transform.dart"; | 9 import "package:reflectable/test_transform.dart"; |
| 10 import "package:reflectable/transformer.dart"; | 10 import "package:reflectable/transformer.dart"; |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 const <int>[], | 77 const <int>[], |
| 78 -1, | 78 -1, |
| 79 {}, | 79 {}, |
| 80 {}, | 80 {}, |
| 81 {r"": () => new prefix0.A()}, | 81 {r"": () => new prefix0.A()}, |
| 82 -1, | 82 -1, |
| 83 0, | 83 0, |
| 84 const <int>[], | 84 const <int>[], |
| 85 null) | 85 null) |
| 86 ], <m.DeclarationMirror>[ | 86 ], <m.DeclarationMirror>[ |
| 87 new r.MethodMirrorImpl(r"", 64, 0, -1, prefix0.A, const <int>[], | 87 new r.MethodMirrorImpl(r"", 64, 0, -1, prefix0.A, null, const <int>[], |
| 88 const prefix0.MyReflectable(), null) | 88 const prefix0.MyReflectable(), null) |
| 89 ], <m.ParameterMirror>[], const <Type>[ | 89 ], <m.ParameterMirror>[], const <Type>[ |
| 90 prefix0.A | 90 prefix0.A |
| 91 ], {}, {}, null) | 91 ], {}, {}, null) |
| 92 }; | 92 }; |
| 93 | 93 |
| 94 _initializeReflectable() { | 94 _initializeReflectable() { |
| 95 if (!isTransformed) { | 95 if (!isTransformed) { |
| 96 throw new UnsupportedError( | 96 throw new UnsupportedError( |
| 97 "The transformed code is running with the untransformed " | 97 "The transformed code is running with the untransformed " |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 // instead of comparing Maps. | 131 // instead of comparing Maps. |
| 132 expect(value, expectedOutputs[key]); | 132 expect(value, expectedOutputs[key]); |
| 133 }); | 133 }); |
| 134 } | 134 } |
| 135 | 135 |
| 136 main() async { | 136 main() async { |
| 137 test("Check transforms", () async { | 137 test("Check transforms", () async { |
| 138 await checkTransform(useReflect); | 138 await checkTransform(useReflect); |
| 139 }); | 139 }); |
| 140 } | 140 } |
| OLD | NEW |