Chromium Code Reviews| Index: lib/mirrors/mirrors.dart |
| =================================================================== |
| --- lib/mirrors/mirrors.dart (revision 9646) |
| +++ lib/mirrors/mirrors.dart (working copy) |
| @@ -355,9 +355,38 @@ |
| * Does this mirror reflect a factory constructor? |
| */ |
| bool isFactoryConstructor; |
| + |
| + /** |
| + * Returns the list of parameters for this method. |
| + */ |
| + List<ParameterMirror> parameters(); |
| } |
| +/** |
| + * A formal parameter. |
|
turnidge
2012/07/13 23:37:12
Make this comment look more like others in the fil
|
| + */ |
| +interface ParameterMirror extends VariableMirror { |
| + /** |
| + * 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. |
| */ |