| 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 2133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2144 int64_t* fixed_param_count, | 2144 int64_t* fixed_param_count, |
| 2145 int64_t* opt_param_count); | 2145 int64_t* opt_param_count); |
| 2146 | 2146 |
| 2147 /** | 2147 /** |
| 2148 * Returns a list of the names of all variables declared in a library | 2148 * Returns a list of the names of all variables declared in a library |
| 2149 * or class. | 2149 * or class. |
| 2150 * | 2150 * |
| 2151 * \param target A library or class. | 2151 * \param target A library or class. |
| 2152 * | 2152 * |
| 2153 * \return If no error occurs, a list of strings is returned. | 2153 * \return If no error occurs, a list of strings is returned. |
| 2154 * Otherwise an erorr handle is returned. | 2154 * Otherwise an error handle is returned. |
| 2155 */ | 2155 */ |
| 2156 DART_EXPORT Dart_Handle Dart_GetVariableNames(Dart_Handle target); | 2156 DART_EXPORT Dart_Handle Dart_GetVariableNames(Dart_Handle target); |
| 2157 | 2157 |
| 2158 /** | 2158 /** |
| 2159 * Looks up a variable declaration by name from a library or class. | 2159 * Looks up a variable declaration by name from a library or class. |
| 2160 * | 2160 * |
| 2161 * \param library The library or class containing the variable. | 2161 * \param library The library or class containing the variable. |
| 2162 * \param variable_name The name of the variable. | 2162 * \param variable_name The name of the variable. |
| 2163 * | 2163 * |
| 2164 * \return If an error is encountered, returns an error handle. | 2164 * \return If an error is encountered, returns an error handle. |
| (...skipping 428 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2593 | 2593 |
| 2594 typedef void (*Dart_FileWriterFunction)(const char* buffer, int64_t num_bytes); | 2594 typedef void (*Dart_FileWriterFunction)(const char* buffer, int64_t num_bytes); |
| 2595 | 2595 |
| 2596 // Support for generating symbol maps for use by the Linux perf tool. | 2596 // Support for generating symbol maps for use by the Linux perf tool. |
| 2597 DART_EXPORT void Dart_InitPerfEventsSupport(Dart_FileWriterFunction function); | 2597 DART_EXPORT void Dart_InitPerfEventsSupport(Dart_FileWriterFunction function); |
| 2598 | 2598 |
| 2599 // Support for generating flow graph compiler debugging output into a file. | 2599 // Support for generating flow graph compiler debugging output into a file. |
| 2600 DART_EXPORT void Dart_InitFlowGraphPrinting(Dart_FileWriterFunction function); | 2600 DART_EXPORT void Dart_InitFlowGraphPrinting(Dart_FileWriterFunction function); |
| 2601 | 2601 |
| 2602 #endif // INCLUDE_DART_API_H_ | 2602 #endif // INCLUDE_DART_API_H_ |
| OLD | NEW |