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

Side by Side Diff: tests/lib_strong/mirrors/deferred_mirrors_metadata_lib.dart

Issue 3011633002: Added back helper file accidentally deleted during test block 219 migration. (Closed)
Patch Set: Created 3 years, 3 months 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
OLDNEW
(Empty)
1 library lib;
2
3 import "deferred_mirrors_metadata_test.dart";
4 @MirrorsUsed(
5 targets: const ["main", "main.A", "main.B", "main.C", "main.D", "lib.E"])
6 import "dart:mirrors";
7
8 class H {
9 const H();
10 }
11
12 class F {
13 @H()
14 final int f;
15 }
16
17 @C()
18 class E {
19 @D()
20 var f;
21 }
22
23 String foo() {
24 String c = reflectClass(E).metadata[0].invoke(#toString, []).reflectee;
25 String d = reflectClass(E)
26 .declarations[#f]
27 .metadata[0]
28 .invoke(#toString, []).reflectee;
29 InstanceMirror i = currentMirrorSystem().findLibrary(#main).metadata[0];
30 String a = i.invoke(#toString, []).reflectee;
31 String b = i.getField(#b).invoke(#toString, []).reflectee;
32 return a + b + c + d;
33 }
OLDNEW
« no previous file with comments | « tests/lib_strong/mirrors/declarations_type_test.dart ('k') | tests/lib_strong/mirrors/deferred_mirrors_metadata_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698