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

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

Issue 11347035: isPrivate, isTopLevel moved to DeclarationMirror (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 | « 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 4e05cfa6304483b31def3fc73180369dc9c4aaf1..ba361681f7f72d624f597770856872318fb79b2d 100644
--- a/pkg/dartdoc/lib/mirrors.dart
+++ b/pkg/dartdoc/lib/mirrors.dart
@@ -115,6 +115,21 @@ abstract class DeclarationMirror implements Mirror {
* Note that for libraries, the owner will be [:null:].
*/
DeclarationMirror get owner;
+
+ /**
+ * Is this declaration private?
+ *
+ * Note that for libraries, this will be [:false:].
+ */
+ bool get isPrivate;
+
+ /**
+ * Is this declaration top-level?
+ *
+ * This is defined to be equivalent to:
+ * [:mirror.owner != null && mirror.owner is LibraryMirror:]
+ */
+ bool get isTopLevel;
}
/**
@@ -220,11 +235,6 @@ abstract class ClassMirror implements TypeMirror, ObjectMirror {
bool get isInterface;
/**
- * Is [:true:] if this type is private.
- */
- bool get isPrivate;
-
- /**
* Is [:true:] if this type is the declaration of a type.
*/
bool get isDeclaration;
@@ -331,11 +341,6 @@ abstract class MemberMirror implements DeclarationMirror {
bool get isMethod;
/**
- * Returns true if this member is private.
- */
- bool get isPrivate;
-
- /**
* Returns true if this member is static.
*/
bool get isStatic;
« 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