Chromium Code Reviews| Index: lib/mirrors/mirrors.dart |
| =================================================================== |
| --- lib/mirrors/mirrors.dart (revision 9669) |
| +++ lib/mirrors/mirrors.dart (working copy) |
| @@ -355,11 +355,40 @@ |
| * Does this mirror reflect a factory constructor? |
| */ |
| bool isFactoryConstructor; |
| + |
| + /** |
| + * Returns the list of parameters for this method. |
| + */ |
| + List<ParameterMirror> parameters(); |
| } |
| +/** |
| + * A [ParameterMirror] reflects a Dart formal parameter declaration. |
| + */ |
| +interface ParameterMirror extends VariableMirror { |
|
rmacnak
2012/07/16 17:36:39
The members of this interface, copied from the "Re
turnidge
2012/07/16 18:30:26
You should probably do whatever *feels* consistent
rmacnak
2012/07/16 22:00:40
Okay. I decided to go with getters since its super
|
| + /** |
| + * Returns the type of this parameter. |
| + */ |
| + TypeMirror type(); |
| + /** |
| + * Returns the default value for this parameter. |
| + */ |
| + String defaultValue(); |
| + |
| + /** |
| + * Returns true if this parameter has a default value. |
| + */ |
| + bool hasDefaultValue(); |
| + |
| + /** |
| + * Returns true if this parameter is optional. |
| + */ |
| + bool isOptional(); |
| +} |
| + |
| /** |
| - * A [VariableMirror] reflects a Dart language variable. |
| + * A [VariableMirror] reflects a Dart language variable declaration. |
| */ |
| interface VariableMirror { |
| /** |