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

Unified Diff: test_reflectable/test/meta_reflectors_definer.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 side-by-side diff with in-line comments
Download patch
Index: test_reflectable/test/meta_reflectors_definer.dart
diff --git a/test_reflectable/test/meta_reflectors_definer.dart b/test_reflectable/test/meta_reflectors_definer.dart
new file mode 100644
index 0000000000000000000000000000000000000000..2c0f180918547af2194826a51ab33f25bd211532
--- /dev/null
+++ b/test_reflectable/test/meta_reflectors_definer.dart
@@ -0,0 +1,30 @@
+// 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 'reflectors_test.dart'.
+//
+// Independence: This library defines reflectors only, and it does not depend
+// on domain classes (`M1..3, A..D, P`) nor on the usage of reflection, i.e.,
+// these reflectors could have been defined in a third-party package .
+
+library test_reflectable.test.meta_reflectors_definer;
+
+import "package:reflectable/reflectable.dart";
+
+class Reflector extends Reflectable {
+ const Reflector()
+ : super(invokingCapability, declarationsCapability, libraryCapability);
+}
+
+class Reflector2 extends Reflectable {
+ const Reflector2()
+ : super(invokingCapability, metadataCapability, libraryCapability);
+}
+
+class ReflectorUpwardsClosed extends Reflectable {
+ const ReflectorUpwardsClosed()
+ : super(superclassQuantifyCapability, invokingCapability,
+ declarationsCapability, typeRelationsCapability);
+}

Powered by Google App Engine
This is Rietveld 408576698