Chromium Code Reviews| Index: lib/mirrors/mirrors.dart |
| =================================================================== |
| --- lib/mirrors/mirrors.dart (revision 10017) |
| +++ lib/mirrors/mirrors.dart (working copy) |
| @@ -266,6 +266,15 @@ |
| * declarations in this library. |
| */ |
| Map<String, VariableMirror> variables(); |
| + |
| + /** |
| + * Invokes the named constructor and returns a mirror on the result. |
| + * |
| + * TODO(turnidge): Properly document. |
| + */ |
| + Future<InstanceMirror> newInstance(String constructorName, |
|
rmacnak
2012/07/30 16:33:45
newInstance is somewhat misleading as a Dart const
Ivan Posva
2012/07/30 17:03:28
The same "confusion" can happen in non-mirrored Da
|
| + List<Object> positionalArguments, |
| + [Map<String,Object> namedArguments]); |
| } |
| /** |