Chromium Code Reviews| 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. |