Index: dart/sdk/lib/_internal/compiler/implementation/mirrors/mirrors.dart |
=================================================================== |
--- dart/sdk/lib/_internal/compiler/implementation/mirrors/mirrors.dart (revision 30037) |
+++ dart/sdk/lib/_internal/compiler/implementation/mirrors/mirrors.dart (working copy) |
@@ -64,6 +64,10 @@ |
*/ |
String get simpleName; |
+ /// Returns `true` if the name of this declaration is generated by the |
+ /// provider of the mirror system. |
+ bool get isNameSynthetic; |
+ |
/** |
* Returns the name of this entity qualified by is enclosing context. For |
* instance, the qualified name of a method 'method' in class 'Class' in |
@@ -107,7 +111,7 @@ |
/** |
* Looks up [name] in the scope of this declaration. |
* |
- * [name] may be either a single identifier, like 'foo', or of the |
+ * [name] may be either a single identifier, like 'foo', or of the |
* a prefixed identifier, like 'foo.bar', where 'foo' must be a prefix. |
* For methods and constructors, the scope includes the parameters. For |
* classes and typedefs, the scope includes the type variables. |
@@ -368,6 +372,13 @@ |
List<ClassMirror> get superinterfaces; |
/** |
+ * The mixin of this class. If this class is the result of a mixin application |
+ * of the form S with M, returns a class mirror on M. Otherwise return the |
+ * class mirror itself. |
+ */ |
+ ClassMirror get mixin; |
+ |
+ /** |
* Is [:true:] iff this type is a class. |
*/ |
bool get isClass; |