Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(226)

Side by Side Diff: runtime/include/dart_api.h

Issue 10831165: Made it possible to distinguish between a method or top-level function and the (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | runtime/vm/dart_api_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 2074 * Returns a handle to the owner of a function. The owner of an instance method
2075 * function is an instance method, a static method or the function of a closure 2075 * or a static method is its defining class. The owner of a top-level function
2076 * defined in such, it has an enclosing class. If this function is a top-level 2076 * is its defining library. The owner of the function of a non-implicit closure
2077 * function or the function of a closure defined in such, it has an enclosing 2077 * is the function of the method or closure that defines the non-implicit
2078 * library. 2078 * closure.
2079 * 2079 *
2080 * \return A valid handle on the enclosing class or library of the function, or 2080 * \return A valid handle on the owner of the function, or an error handle if
2081 * an error handle if the argument is not a valid handle to a function. 2081 * the argument is not a valid handle to a function.
2082 */ 2082 */
2083 DART_EXPORT Dart_Handle Dart_FunctionEnclosingClassOrLibrary( 2083 DART_EXPORT Dart_Handle Dart_FunctionOwner(Dart_Handle function);
2084 Dart_Handle function);
2085 2084
2086 /** 2085 /**
2087 * Determines whether a function handle refers to an abstract method. 2086 * Determines whether a function handle refers to an abstract method.
2088 * 2087 *
2089 * \param function A handle to a function or method declaration. 2088 * \param function A handle to a function or method declaration.
2090 * \param is_static Returns whether the handle refers to an abstract method. 2089 * \param is_static Returns whether the handle refers to an abstract method.
2091 * 2090 *
2092 * \return A valid handle if no error occurs during the operation. 2091 * \return A valid handle if no error occurs during the operation.
2093 */ 2092 */
2094 DART_EXPORT Dart_Handle Dart_FunctionIsAbstract(Dart_Handle function, 2093 DART_EXPORT Dart_Handle Dart_FunctionIsAbstract(Dart_Handle function,
(...skipping 511 matching lines...) Expand 10 before | Expand all | Expand 10 after
2606 2605
2607 typedef void (*Dart_FileWriterFunction)(const char* buffer, int64_t num_bytes); 2606 typedef void (*Dart_FileWriterFunction)(const char* buffer, int64_t num_bytes);
2608 2607
2609 // Support for generating symbol maps for use by the Linux perf tool. 2608 // Support for generating symbol maps for use by the Linux perf tool.
2610 DART_EXPORT void Dart_InitPerfEventsSupport(Dart_FileWriterFunction function); 2609 DART_EXPORT void Dart_InitPerfEventsSupport(Dart_FileWriterFunction function);
2611 2610
2612 // Support for generating flow graph compiler debugging output into a file. 2611 // Support for generating flow graph compiler debugging output into a file.
2613 DART_EXPORT void Dart_InitFlowGraphPrinting(Dart_FileWriterFunction function); 2612 DART_EXPORT void Dart_InitFlowGraphPrinting(Dart_FileWriterFunction function);
2614 2613
2615 #endif // INCLUDE_DART_API_H_ 2614 #endif // INCLUDE_DART_API_H_
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/dart_api_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698