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

Unified Diff: sdk/lib/_internal/dartdoc/lib/mirrors.dart

Issue 11363076: Add isParameter, change isField to isVariable on MemberMirror (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 1 month 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
Index: sdk/lib/_internal/dartdoc/lib/mirrors.dart
diff --git a/sdk/lib/_internal/dartdoc/lib/mirrors.dart b/sdk/lib/_internal/dartdoc/lib/mirrors.dart
index d29064d6a11e9ee825108ff808fc8a42a7a71dfe..c9f1d82d0894299bf6a60db6a7b83583fb3da17d 100644
--- a/sdk/lib/_internal/dartdoc/lib/mirrors.dart
+++ b/sdk/lib/_internal/dartdoc/lib/mirrors.dart
@@ -401,24 +401,33 @@ abstract class TypedefMirror implements ClassMirror {
*/
abstract class MemberMirror implements DeclarationMirror {
/**
- * Returns true if this member is a constructor.
+ * Is this member a constructor?
*/
bool get isConstructor;
/**
- * Returns true if this member is a field.
+ * Is this member a variable?
+ *
+ * This is [:false:] for locals.
*/
- bool get isField;
+ bool get isVariable;
/**
- * Returns true if this member is a method.
+ * Is this member a method?.
+ *
+ * This is [:false:] for constructors.
*/
bool get isMethod;
/**
- * Returns true if this member is static.
+ * Is this member declared static?
*/
bool get isStatic;
+
+ /**
+ * Is this member a parameter?
+ */
+ bool get isParameter;
}
/**
« no previous file with comments | « sdk/lib/_internal/dartdoc/lib/dartdoc.dart ('k') | sdk/lib/_internal/dartdoc/lib/src/mirrors/dart2js_mirror.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698