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

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

Issue 11358005: ParameterMirror extends VariableMirror (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 ef5734a22baef9be8a140e21aa9bee5ddaedb233..ffc0fe49610cbfdafd0094294e006ef20f90bb38 100644
--- a/pkg/dartdoc/lib/mirrors.dart
+++ b/pkg/dartdoc/lib/mirrors.dart
@@ -391,12 +391,6 @@ abstract class TypedefMirror implements ClassMirror {
*/
abstract class MemberMirror implements DeclarationMirror {
/**
- * Returns true if this is a top level member, i.e. a member not within a
- * type.
- */
- bool get isTopLevel;
-
- /**
* Returns true if this member is a constructor.
*/
bool get isConstructor;
@@ -499,7 +493,7 @@ abstract class MethodMirror implements MemberMirror {
/**
* A formal parameter.
*/
-abstract class ParameterMirror implements Mirror {
+abstract class ParameterMirror implements VariableMirror {
/**
* Returns the type of this parameter.
*/
@@ -511,16 +505,21 @@ abstract class ParameterMirror implements Mirror {
String get defaultValue;
/**
- * Returns true if this parameter has a default value.
+ * Does this parameter have a default value?
*/
bool get hasDefaultValue;
/**
- * Returns true if this parameter is optional.
+ * Is this parameter optional?
*/
bool get isOptional;
/**
+ * Is this parameter named?
+ */
+ bool get isNamed;
+
+ /**
* Returns [:true:] iff this parameter is an initializing formal of a
* constructor. That is, if it is of the form [:this.x:] where [:x:] is a
* field.
« 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