Chromium Code Reviews| 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 on the enclosing class of a function (if it is an instance | |
| 2075 * method, a static method, or a closure defined in such) or its enclosing | |
| 2076 * library (if it is a top-level function or a closure defined in such). | |
|
turnidge
2012/07/31 22:22:07
can you split the description into a short first s
| |
| 2077 * | |
| 2078 * \return A valid handle on the enclosing class or library of the function, or | |
| 2079 * an error handle if the argument is not a valid handle on a function. | |
| 2080 */ | |
| 2081 DART_EXPORT Dart_Handle Dart_FunctionEnclosingClassOrLibrary( | |
| 2082 Dart_Handle function); | |
| 2083 | |
| 2084 /** | |
| 2074 * Determines whether a function handle refers to an abstract method. | 2085 * Determines whether a function handle refers to an abstract method. |
| 2075 * | 2086 * |
| 2076 * \param function A handle to a function or method declaration. | 2087 * \param function A handle to a function or method declaration. |
| 2077 * \param is_static Returns whether the handle refers to an abstract method. | 2088 * \param is_static Returns whether the handle refers to an abstract method. |
| 2078 * | 2089 * |
| 2079 * \return A valid handle if no error occurs during the operation. | 2090 * \return A valid handle if no error occurs during the operation. |
| 2080 */ | 2091 */ |
| 2081 DART_EXPORT Dart_Handle Dart_FunctionIsAbstract(Dart_Handle function, | 2092 DART_EXPORT Dart_Handle Dart_FunctionIsAbstract(Dart_Handle function, |
| 2082 bool* is_abstract); | 2093 bool* is_abstract); |
| 2083 | 2094 |
| (...skipping 509 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2593 | 2604 |
| 2594 typedef void (*Dart_FileWriterFunction)(const char* buffer, int64_t num_bytes); | 2605 typedef void (*Dart_FileWriterFunction)(const char* buffer, int64_t num_bytes); |
| 2595 | 2606 |
| 2596 // Support for generating symbol maps for use by the Linux perf tool. | 2607 // Support for generating symbol maps for use by the Linux perf tool. |
| 2597 DART_EXPORT void Dart_InitPerfEventsSupport(Dart_FileWriterFunction function); | 2608 DART_EXPORT void Dart_InitPerfEventsSupport(Dart_FileWriterFunction function); |
| 2598 | 2609 |
| 2599 // Support for generating flow graph compiler debugging output into a file. | 2610 // Support for generating flow graph compiler debugging output into a file. |
| 2600 DART_EXPORT void Dart_InitFlowGraphPrinting(Dart_FileWriterFunction function); | 2611 DART_EXPORT void Dart_InitFlowGraphPrinting(Dart_FileWriterFunction function); |
| 2601 | 2612 |
| 2602 #endif // INCLUDE_DART_API_H_ | 2613 #endif // INCLUDE_DART_API_H_ |
| OLD | NEW |