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

Unified Diff: test_reflectable/test/meta_reflectors_domain_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: 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
« no previous file with comments | « test_reflectable/test/meta_reflectors_domain.dart ('k') | test_reflectable/test/meta_reflectors_meta.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test_reflectable/test/meta_reflectors_domain_definer.dart
diff --git a/test_reflectable/test/meta_reflectors_domain_definer.dart b/test_reflectable/test/meta_reflectors_domain_definer.dart
new file mode 100644
index 0000000000000000000000000000000000000000..a13aaf901c4138dbbd0ad4131711a5e7f1dafbbd
--- /dev/null
+++ b/test_reflectable/test/meta_reflectors_domain_definer.dart
@@ -0,0 +1,26 @@
+// 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 the usage of reflection. It does depend on the domain classes, because
+/// it uses `A` as an upper bound in a superclass quantifier.
+library test_reflectable.test.meta_reflectors_domain_definer;
+
+import "package:reflectable/reflectable.dart";
+import "meta_reflectors_domain.dart";
+
+class ReflectorUpwardsClosedToA extends Reflectable {
+ const ReflectorUpwardsClosedToA()
+ : super(const SuperclassQuantifyCapability(A), invokingCapability,
+ declarationsCapability);
+}
+
+class ReflectorUpwardsClosedUntilA extends Reflectable {
+ const ReflectorUpwardsClosedUntilA()
+ : super(const SuperclassQuantifyCapability(A, excludeUpperBound: true),
+ invokingCapability, declarationsCapability);
+}
« no previous file with comments | « test_reflectable/test/meta_reflectors_domain.dart ('k') | test_reflectable/test/meta_reflectors_meta.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698