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

Unified Diff: runtime/include/dart_debugger_api.h

Issue 65383007: Add Dart_GetClosureInfo (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 1 month 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/debugger_api_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/include/dart_debugger_api.h
===================================================================
--- runtime/include/dart_debugger_api.h (revision 30160)
+++ runtime/include/dart_debugger_api.h (working copy)
@@ -559,6 +559,25 @@
Dart_Handle* static_fields);
+/** Returns info about the given closure \closure.
+ *
+ * \param name receives handle to closure name (string).
+ * Receives a null handle if the closure is anonymous.
+ * \param location.script_url receives a string handle with the url of
+ * the source script that contains the closure.
+ * Receives a null handle if there is no textual location
+ * that corresponds to the fucntion.
+ * \param location.library_id receives the id of the library in which the
+ * function in this frame is defined.
+ * \param location.token_pos receives the token position in the script.
+ *
+ * \return A handle to the value true if no error occurs.
+ */
+DART_EXPORT Dart_Handle Dart_GetClosureInfo(Dart_Handle closure,
+ Dart_Handle* name,
+ Dart_CodeLocation* location);
+
+
/**
* Returns an array containing all instance field names and values of
* the given \object.
« no previous file with comments | « no previous file | runtime/vm/debugger_api_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698