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

Side by Side Diff: test_reflectable/test/meta_reflectors_domain.dart

Issue 1391543003: Creates `reflectors`, as a meta-meta feature that enables dynamic selection of a "mirror system". (Closed) Base URL: https://github.com/dart-lang/reflectable.git@master
Patch Set: Added lots of LibraryMirror support in order to make reflectors work in transformed code Created 5 years, 2 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 // Copyright (c) 2015, the Dart Team. All rights reserved. Use of this
2 // source code is governed by a BSD-style license that can be found in
3 // the LICENSE file.
4
5 // File being transformed by the reflectable transformer.
sigurdm 2015/10/09 07:52:04 Could be doc-comment of the library annotation.
eernst 2015/10/09 10:09:05 Ah, didn't think about that! Done.
6 // Part of the entry point 'meta_reflectors_test.dart'.
7 //
8 // Independence: The "domain classes" `M1`..`M3`, `A`..`D`, `P` are assumed to
9 // be specific to the particular entry point 'meta_reflectors_test.dart' and
10 // its transitive closure, but there is no dependency from them to any of the
11 // libraries introducing or using reflectable reflection.
12
13 library test_reflectable.test.meta_reflectors_share;
14
15 class P {
16 const P();
17 }
18
19 @P()
20 class M1 {
21 foo() {}
22 var field;
23 static staticFoo(x) {}
24 }
25
26 class M2 {}
27
28 class M3 {}
29
30 class A {
31 foo() {}
32 var field;
33 static staticFoo(x) {}
34 static staticBar() {}
35 }
36
37 class B extends A with M1 {}
38
39 class C extends B with M2, M3 {}
40
41 class D = A with M1;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698