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

Unified Diff: runtime/include/dart_api.h

Issue 17346002: Fix for issue 11262. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 6 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/vm/dart_api_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/include/dart_api.h
===================================================================
--- runtime/include/dart_api.h (revision 24118)
+++ runtime/include/dart_api.h (working copy)
@@ -2058,6 +2058,24 @@
DART_EXPORT Dart_Handle Dart_RootLibrary();
/**
+ * Lookup or instantiate a type by name and type arguments from a Library.
+ *
+ * \param library The library containing the class or interface.
+ * \param type_name The name of the type.
regis 2013/06/18 08:14:24 Didn't we decide to call this parameter class_name
siva 2013/06/18 17:23:58 Yes, I cut and paste the prototype from the first
+ * \param number_of_type_arguments Number of type arguments.
+ * For non parametric types the number of type arguments would be 0.
+ * \param type_arguments Pointer to an array of type arguments.
+ * For non parameteric types a NULL would be passed in for this argument.
+ *
+ * \return If no error occurs, the type is returned.
+ * Otherwise an error handle is returned.
+ */
+DART_EXPORT Dart_Handle Dart_GetType(Dart_Handle library,
+ Dart_Handle type_name,
regis 2013/06/18 08:14:24 class_name?
siva 2013/06/18 17:23:58 Done.
+ intptr_t number_of_type_arguments,
+ Dart_Handle* type_arguments);
+
+/**
* Lookup a class or interface by name from a Library.
*
* \param library The library containing the class or interface.
« no previous file with comments | « no previous file | runtime/vm/dart_api_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698