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

Unified 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: Review response. 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 side-by-side diff with in-line comments
Download patch
Index: test_reflectable/test/meta_reflectors_domain.dart
diff --git a/test_reflectable/test/meta_reflectors_domain.dart b/test_reflectable/test/meta_reflectors_domain.dart
new file mode 100644
index 0000000000000000000000000000000000000000..96bfa40a30eea58893c6db903dfe8f68e4f1ca00
--- /dev/null
+++ b/test_reflectable/test/meta_reflectors_domain.dart
@@ -0,0 +1,40 @@
+// Copyright (c) 2015, the Dart Team. All rights reserved. Use of this
+// source code is governed by a BSD-style license that can be found in
+// the LICENSE file.
+
+/// File being transformed by the reflectable transformer.
+/// Part of the entry point 'meta_reflectors_test.dart'.
+///
+/// Independence: The "domain classes" `M1`..`M3`, `A`..`D`, `P` are assumed to
+/// be specific to the particular entry point 'meta_reflectors_test.dart' and
+/// its transitive closure, but there is no dependency from them to any of the
+/// libraries introducing or using reflectable reflection.
+library test_reflectable.test.meta_reflectors_share;
+
+class P {
+ const P();
+}
+
+@P()
+class M1 {
+ foo() {}
+ var field;
+ static staticFoo(x) {}
+}
+
+class M2 {}
+
+class M3 {}
+
+class A {
+ foo() {}
+ var field;
+ static staticFoo(x) {}
+ static staticBar() {}
+}
+
+class B extends A with M1 {}
+
+class C extends B with M2, M3 {}
+
+class D = A with M1;
« no previous file with comments | « test_reflectable/test/meta_reflectors_definer.dart ('k') | test_reflectable/test/meta_reflectors_domain_definer.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698