Index: sdk/lib/mirrors/mirrors.dart |
diff --git a/sdk/lib/mirrors/mirrors.dart b/sdk/lib/mirrors/mirrors.dart |
index c22d3c3164e8d1bf673cbfbec46c8386c4810492..a5611fd37b9f1e76f4f751c0bb6d61a54dcca843 100644 |
--- a/sdk/lib/mirrors/mirrors.dart |
+++ b/sdk/lib/mirrors/mirrors.dart |
@@ -1099,16 +1099,18 @@ abstract class ParameterMirror implements VariableMirror { |
bool get isNamed; |
/** |
- * Returns [:true:] if the reflectee has a default value. |
+ * Returns [:true:] if the reflectee has explicitly declared a default value. |
* Otherwise returns [:false:]. |
*/ |
bool get hasDefaultValue; |
/** |
- * A mirror on the default value for this parameter, if it exists. |
+ * If this is a required parameter, returns [:null:]. Otherwise returns a |
+ * mirror on the default value for this parameter. If no default is declared |
+ * for an optional parameter, the default is [:null:] and a mirror on [:null:] |
+ * is returned. |
*/ |
- // TODO(ahe): This should return an InstanceMirror. |
- String get defaultValue; |
+ InstanceMirror get defaultValue; |
} |
/** |