Index: pkg/dartdoc/lib/mirrors.dart |
diff --git a/pkg/dartdoc/lib/mirrors.dart b/pkg/dartdoc/lib/mirrors.dart |
index 804cc7ed1da7024585c76e3d37a240b08aa0474e..4e05cfa6304483b31def3fc73180369dc9c4aaf1 100644 |
--- a/pkg/dartdoc/lib/mirrors.dart |
+++ b/pkg/dartdoc/lib/mirrors.dart |
@@ -107,6 +107,14 @@ abstract class DeclarationMirror implements Mirror { |
* The source location of this Dart language entity. |
*/ |
SourceLocation get location; |
+ |
+ /** |
+ * A mirror on the owner of this function. This is the declaration immediately |
+ * surrounding the reflectee. |
+ * |
+ * Note that for libraries, the owner will be [:null:]. |
+ */ |
+ DeclarationMirror get owner; |
} |
/** |
@@ -302,12 +310,6 @@ abstract class TypedefMirror implements ClassMirror { |
*/ |
abstract class MemberMirror implements DeclarationMirror { |
/** |
- * Returns a mirror on the declaration immediately surrounding the reflectee. |
- * This could be a class, interface, library or another method or function. |
- */ |
- ObjectMirror get surroundingDeclaration; |
- |
- /** |
* Returns true if this is a top level member, i.e. a member not within a |
* type. |
*/ |