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

Unified Diff: pkg/dartdoc/lib/mirrors.dart

Issue 11337021: Change surroundingDeclaration to DeclarationMirror.owner (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 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 | « pkg/dartdoc/lib/dartdoc.dart ('k') | pkg/dartdoc/lib/mirrors_util.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.
*/
« no previous file with comments | « pkg/dartdoc/lib/dartdoc.dart ('k') | pkg/dartdoc/lib/mirrors_util.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698