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

Unified Diff: runtime/include/dart_debugger_api.h

Issue 13144018: Add text location in debugger event (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 9 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
Index: runtime/include/dart_debugger_api.h
===================================================================
--- runtime/include/dart_debugger_api.h (revision 20732)
+++ runtime/include/dart_debugger_api.h (working copy)
@@ -415,6 +415,29 @@
/**
+ * Returns text location of the given activation frame.
+ * \script_url receives a string handle with the url of the
+ * source script that contains the frame's function.
+ * Receives a null handle if there is no textual location
+ * that corresponds to the frame, e.g. for implicitly
+ * generated constructors.
+ * \token_number receives the line number in the script.
+ *
+ * Any or all of the out parameters above may be NULL.
+ *
+ * Requires there to be a current isolate.
+ *
+ * \return A handle to the True object if no error occurs.
+ * A handle to the False object if there is no text
+ * position for the frame.
+ */
+DART_EXPORT Dart_Handle Dart_ActivationFrameGetLocation(
+ Dart_ActivationFrame activation_frame,
+ Dart_Handle* script_url,
+ intptr_t* token_number);
+
+
+/**
* Returns an array containing all the local variable names and values of
* the given \activation_frame.
*

Powered by Google App Engine
This is Rietveld 408576698