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

Unified Diff: runtime/include/dart_api.h

Issue 10834096: Added Dart_FunctionEnclosingClassOrLibrary. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | runtime/vm/dart_api_impl.cc » ('j') | runtime/vm/dart_api_impl.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/include/dart_api.h
===================================================================
--- runtime/include/dart_api.h (revision 10077)
+++ runtime/include/dart_api.h (working copy)
@@ -2071,6 +2071,17 @@
DART_EXPORT Dart_Handle Dart_FunctionName(Dart_Handle function);
/**
+ * Returns a handle on the enclosing class of a function (if it is an instance
+ * method, a static method, or a closure defined in such) or its enclosing
+ * 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
+ *
+ * \return A valid handle on the enclosing class or library of the function, or
+ * an error handle if the argument is not a valid handle on a function.
+ */
+DART_EXPORT Dart_Handle Dart_FunctionEnclosingClassOrLibrary(
+ Dart_Handle function);
+
+/**
* Determines whether a function handle refers to an abstract method.
*
* \param function A handle to a function or method declaration.
« no previous file with comments | « no previous file | runtime/vm/dart_api_impl.cc » ('j') | runtime/vm/dart_api_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698