| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef INCLUDE_DART_API_H_ | 5 #ifndef INCLUDE_DART_API_H_ |
| 6 #define INCLUDE_DART_API_H_ | 6 #define INCLUDE_DART_API_H_ |
| 7 | 7 |
| 8 /** \mainpage Dart Embedding API Reference | 8 /** \mainpage Dart Embedding API Reference |
| 9 * | 9 * |
| 10 * Dart is a class-based programming language for creating structured | 10 * Dart is a class-based programming language for creating structured |
| (...skipping 2155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2166 int64_t* fixed_param_count, | 2166 int64_t* fixed_param_count, |
| 2167 int64_t* opt_param_count); | 2167 int64_t* opt_param_count); |
| 2168 | 2168 |
| 2169 /** | 2169 /** |
| 2170 * Returns a list of the names of all variables declared in a library | 2170 * Returns a list of the names of all variables declared in a library |
| 2171 * or class. | 2171 * or class. |
| 2172 * | 2172 * |
| 2173 * \param target A library or class. | 2173 * \param target A library or class. |
| 2174 * | 2174 * |
| 2175 * \return If no error occurs, a list of strings is returned. | 2175 * \return If no error occurs, a list of strings is returned. |
| 2176 * Otherwise an error handle is returned. | 2176 * Otherwise an erorr handle is returned. |
| 2177 */ | 2177 */ |
| 2178 DART_EXPORT Dart_Handle Dart_GetVariableNames(Dart_Handle target); | 2178 DART_EXPORT Dart_Handle Dart_GetVariableNames(Dart_Handle target); |
| 2179 | 2179 |
| 2180 /** | 2180 /** |
| 2181 * Looks up a variable declaration by name from a library or class. | 2181 * Looks up a variable declaration by name from a library or class. |
| 2182 * | 2182 * |
| 2183 * \param library The library or class containing the variable. | 2183 * \param library The library or class containing the variable. |
| 2184 * \param variable_name The name of the variable. | 2184 * \param variable_name The name of the variable. |
| 2185 * | 2185 * |
| 2186 * \return If an error is encountered, returns an error handle. | 2186 * \return If an error is encountered, returns an error handle. |
| (...skipping 432 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2619 | 2619 |
| 2620 typedef void (*Dart_FileWriterFunction)(const char* buffer, int64_t num_bytes); | 2620 typedef void (*Dart_FileWriterFunction)(const char* buffer, int64_t num_bytes); |
| 2621 | 2621 |
| 2622 // Support for generating symbol maps for use by the Linux perf tool. | 2622 // Support for generating symbol maps for use by the Linux perf tool. |
| 2623 DART_EXPORT void Dart_InitPerfEventsSupport(Dart_FileWriterFunction function); | 2623 DART_EXPORT void Dart_InitPerfEventsSupport(Dart_FileWriterFunction function); |
| 2624 | 2624 |
| 2625 // Support for generating flow graph compiler debugging output into a file. | 2625 // Support for generating flow graph compiler debugging output into a file. |
| 2626 DART_EXPORT void Dart_InitFlowGraphPrinting(Dart_FileWriterFunction function); | 2626 DART_EXPORT void Dart_InitFlowGraphPrinting(Dart_FileWriterFunction function); |
| 2627 | 2627 |
| 2628 #endif // INCLUDE_DART_API_H_ | 2628 #endif // INCLUDE_DART_API_H_ |
| OLD | NEW |