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

Unified Diff: reflectable/lib/reflectable.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: reflectable/lib/reflectable.dart
diff --git a/reflectable/lib/reflectable.dart b/reflectable/lib/reflectable.dart
index 5b8281293a5b07f386590ce1709bdea29817a48a..a48a6332398999014ac67d124423d0c5d6a5d499 100644
--- a/reflectable/lib/reflectable.dart
+++ b/reflectable/lib/reflectable.dart
@@ -90,7 +90,7 @@ abstract class ReflectableInterface {
/// which means that the behavior of the instance can be expressed by
/// generating code in the class. Generalizations of this setup may
/// be supported in the future if compelling use cases come up.
-class Reflectable extends implementation.ReflectableImpl
+abstract class Reflectable extends implementation.ReflectableImpl
implements ReflectableInterface {
// Intended to near-uniquely identify this class in target programs.
static const thisClassName = reflectable_class_constants.name;
@@ -108,6 +108,8 @@ class Reflectable extends implementation.ReflectableImpl
const Reflectable.fromList(List<ReflectCapability> capabilities)
: super.fromList(capabilities);
+
+ static Set<Reflectable> get reflectors => implementation.reflectors;
sigurdm 2015/10/09 07:52:04 I still think it would be better to give: static
eernst 2015/10/09 10:09:04 Introduced a `getInstance` static method and adjus
}
/// Returns true if the transformed version is running, false otherwise.
« no previous file with comments | « no previous file | reflectable/lib/src/encoding_constants.dart » ('j') | reflectable/lib/src/encoding_constants.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698