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

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

Issue 11338031: Introduce DeclarationMirror (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updated cf. comment 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 | « no previous file | pkg/dartdoc/lib/src/mirrors/dart2js_mirror.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 934ce3203619b8cdbde1e15acec4c80322ad3e54..231d1d0a362d18e3418e450f5c80aa1829222c63 100644
--- a/pkg/dartdoc/lib/mirrors.dart
+++ b/pkg/dartdoc/lib/mirrors.dart
@@ -66,6 +66,13 @@ abstract class Mirror {
static const String UNARY_MINUS = 'unary-';
/**
+ * Returns the mirror system which contains this mirror.
+ */
+ MirrorSystem get system;
+}
+
+abstract class DeclarationMirror implements Mirror {
+ /**
* The simple name of the entity. The simple name is unique within the
* scope of the entity declaration.
*
@@ -96,10 +103,6 @@ abstract class Mirror {
*/
String get qualifiedName;
- /**
- * Returns the mirror system which contains this mirror.
- */
- MirrorSystem get system;
}
/**
@@ -117,7 +120,7 @@ abstract class ObjectMirror implements Mirror {
/**
* A library.
*/
-abstract class LibraryMirror extends ObjectMirror {
+abstract class LibraryMirror implements ObjectMirror, DeclarationMirror {
/**
* The name of the library, as given in #library().
*/
@@ -142,7 +145,7 @@ abstract class LibraryMirror extends ObjectMirror {
/**
* Common interface for classes, interfaces, typedefs and type variables.
*/
-abstract class TypeMirror implements Mirror {
+abstract class TypeMirror implements DeclarationMirror {
/**
* Returns the source location for this type.
*/
@@ -303,7 +306,7 @@ abstract class TypedefMirror implements ClassMirror {
/**
* A member of a type, i.e. a field, method or constructor.
*/
-abstract class MemberMirror implements Mirror {
+abstract class MemberMirror implements DeclarationMirror {
/**
* Returns the source location for this member.
*/
« no previous file with comments | « no previous file | pkg/dartdoc/lib/src/mirrors/dart2js_mirror.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698