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

Unified Diff: lib/mirrors/mirrors.dart

Issue 10834056: Added InterfaceMirror.newInstance(). (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 5 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 | runtime/lib/mirrors.cc » ('j') | runtime/lib/mirrors.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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]);
}
/**
« no previous file with comments | « no previous file | runtime/lib/mirrors.cc » ('j') | runtime/lib/mirrors.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698