| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 2 * Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
| 3 * for details. All rights reserved. Use of this source code is governed by a | 3 * for details. All rights reserved. Use of this source code is governed by a |
| 4 * BSD-style license that can be found in the LICENSE file. | 4 * BSD-style license that can be found in the LICENSE file. |
| 5 */ | 5 */ |
| 6 | 6 |
| 7 #ifndef INCLUDE_DART_MIRRORS_API_H_ | 7 #ifndef INCLUDE_DART_MIRRORS_API_H_ |
| 8 #define INCLUDE_DART_MIRRORS_API_H_ | 8 #define INCLUDE_DART_MIRRORS_API_H_ |
| 9 | 9 |
| 10 #include "include/dart_api.h" | 10 #include "include/dart_api.h" |
| 11 | 11 |
| 12 | 12 |
| 13 /** | 13 /** |
| 14 * Returns the class name for the provided class. | 14 * Returns the simple name for the provided type. |
| 15 */ | 15 */ |
| 16 DART_EXPORT Dart_Handle Dart_TypeName(Dart_Handle type); |
| 16 DART_EXPORT Dart_Handle Dart_ClassName(Dart_Handle type); | 17 DART_EXPORT Dart_Handle Dart_ClassName(Dart_Handle type); |
| 17 | 18 |
| 18 /** | 19 /** |
| 19 * Returns the qualified class name for the provided class. | 20 * Returns the qualified name for the provided type. |
| 20 */ | 21 */ |
| 22 DART_EXPORT Dart_Handle Dart_QualifiedTypeName(Dart_Handle type); |
| 21 DART_EXPORT Dart_Handle Dart_QualifiedClassName(Dart_Handle type); | 23 DART_EXPORT Dart_Handle Dart_QualifiedClassName(Dart_Handle type); |
| 22 | 24 |
| 23 /** | 25 /** |
| 24 * Returns a list of the names of all functions or methods declared in | 26 * Returns a list of the names of all functions or methods declared in |
| 25 * a library or class. | 27 * a library or class. |
| 26 * | 28 * |
| 27 * \param target A library or class. | 29 * \param target A library or class. |
| 28 * | 30 * |
| 29 * \return If no error occurs, a list of strings is returned. | 31 * \return If no error occurs, a list of strings is returned. |
| 30 * Otherwise an error handle is returned. | 32 * Otherwise an error handle is returned. |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 133 /** | 135 /** |
| 134 * Retrieves the function of a closure. | 136 * Retrieves the function of a closure. |
| 135 * | 137 * |
| 136 * \return A handle to the function of the closure, or an error handle if the | 138 * \return A handle to the function of the closure, or an error handle if the |
| 137 * argument is not a closure. | 139 * argument is not a closure. |
| 138 */ | 140 */ |
| 139 DART_EXPORT Dart_Handle Dart_ClosureFunction(Dart_Handle closure); | 141 DART_EXPORT Dart_Handle Dart_ClosureFunction(Dart_Handle closure); |
| 140 | 142 |
| 141 | 143 |
| 142 #endif /* INCLUDE_DART_MIRRORS_API_H_ */ /* NOLINT */ | 144 #endif /* INCLUDE_DART_MIRRORS_API_H_ */ /* NOLINT */ |
| OLD | NEW |