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

Side by Side Diff: reflectable/test/mock_tests/check_literal_transform_test.dart

Issue 1473073009: Added `dynamicReflected..Type`, corrected type expressions. (Closed) Base URL: https://github.com/dart-lang/reflectable.git@master
Patch Set: Review response. Created 5 years 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 unified diff | Download patch
« no previous file with comments | « reflectable/lib/transformer.dart ('k') | test_reflectable/pubspec.yaml » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « reflectable/lib/transformer.dart ('k') | test_reflectable/pubspec.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698