| 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 2053 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2064 | 2064 |
| 2065 /** | 2065 /** |
| 2066 * Returns the name for the provided function or method. | 2066 * Returns the name for the provided function or method. |
| 2067 * | 2067 * |
| 2068 * \return A valid string handle if no error occurs during the | 2068 * \return A valid string handle if no error occurs during the |
| 2069 * operation. | 2069 * operation. |
| 2070 */ | 2070 */ |
| 2071 DART_EXPORT Dart_Handle Dart_FunctionName(Dart_Handle function); | 2071 DART_EXPORT Dart_Handle Dart_FunctionName(Dart_Handle function); |
| 2072 | 2072 |
| 2073 /** | 2073 /** |
| 2074 * Returns a handle to the enclosing class or library for a function. If this |
| 2075 * function is an instance method, a static method or the function of a closure |
| 2076 * defined in such, it has an enclosing class. If this function is a top-level |
| 2077 * function or the function of a closure defined in such, it has an enclosing |
| 2078 * library. |
| 2079 * |
| 2080 * \return A valid handle on the enclosing class or library of the function, or |
| 2081 * an error handle if the argument is not a valid handle to a function. |
| 2082 */ |
| 2083 DART_EXPORT Dart_Handle Dart_FunctionEnclosingClassOrLibrary( |
| 2084 Dart_Handle function); |
| 2085 |
| 2086 /** |
| 2074 * Determines whether a function handle refers to an abstract method. | 2087 * Determines whether a function handle refers to an abstract method. |
| 2075 * | 2088 * |
| 2076 * \param function A handle to a function or method declaration. | 2089 * \param function A handle to a function or method declaration. |
| 2077 * \param is_static Returns whether the handle refers to an abstract method. | 2090 * \param is_static Returns whether the handle refers to an abstract method. |
| 2078 * | 2091 * |
| 2079 * \return A valid handle if no error occurs during the operation. | 2092 * \return A valid handle if no error occurs during the operation. |
| 2080 */ | 2093 */ |
| 2081 DART_EXPORT Dart_Handle Dart_FunctionIsAbstract(Dart_Handle function, | 2094 DART_EXPORT Dart_Handle Dart_FunctionIsAbstract(Dart_Handle function, |
| 2082 bool* is_abstract); | 2095 bool* is_abstract); |
| 2083 | 2096 |
| (...skipping 509 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2593 | 2606 |
| 2594 typedef void (*Dart_FileWriterFunction)(const char* buffer, int64_t num_bytes); | 2607 typedef void (*Dart_FileWriterFunction)(const char* buffer, int64_t num_bytes); |
| 2595 | 2608 |
| 2596 // Support for generating symbol maps for use by the Linux perf tool. | 2609 // Support for generating symbol maps for use by the Linux perf tool. |
| 2597 DART_EXPORT void Dart_InitPerfEventsSupport(Dart_FileWriterFunction function); | 2610 DART_EXPORT void Dart_InitPerfEventsSupport(Dart_FileWriterFunction function); |
| 2598 | 2611 |
| 2599 // Support for generating flow graph compiler debugging output into a file. | 2612 // Support for generating flow graph compiler debugging output into a file. |
| 2600 DART_EXPORT void Dart_InitFlowGraphPrinting(Dart_FileWriterFunction function); | 2613 DART_EXPORT void Dart_InitFlowGraphPrinting(Dart_FileWriterFunction function); |
| 2601 | 2614 |
| 2602 #endif // INCLUDE_DART_API_H_ | 2615 #endif // INCLUDE_DART_API_H_ |
| OLD | NEW |