Chromium Code Reviews| Index: sdk/lib/mirrors/mirrors.dart |
| diff --git a/sdk/lib/mirrors/mirrors.dart b/sdk/lib/mirrors/mirrors.dart |
| index b0d39d9c1262150a388d36111a8e4319868b8391..7ea9f0843f38351e80453898fe2882bc7c33b959 100644 |
| --- a/sdk/lib/mirrors/mirrors.dart |
| +++ b/sdk/lib/mirrors/mirrors.dart |
| @@ -682,6 +682,18 @@ abstract class TypeMirror implements DeclarationMirror { |
| */ |
| abstract class ClassMirror implements TypeMirror, ObjectMirror { |
| /** |
| + * Returns true if this mirror reflects a non-generic class or an instanitated |
| + * generic class. Otherwise, returns false. |
| + */ |
|
gbracha
2013/08/16 19:59:31
This will also have to account for remote mirrors
rmacnak
2013/08/16 20:06:29
Done.
|
| + bool get hasReflectedType; |
| + |
| + /** |
| + * If [:hasReflectedType:] returns true, returns the corresponding [Type]. |
| + * Otherwise, an [UnsupportedError] is thrown. |
| + */ |
| + Type get reflectedType; |
| + |
| + /** |
| * A mirror on the superclass on the reflectee. |
| * |
| * If this type is [:Object:] or a typedef, the superClass will be |