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

Unified Diff: runtime/include/dart_debugger_api.h

Issue 12517005: Add a command line option to generate source code for a script (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 19934)
+++ runtime/include/dart_debugger_api.h (working copy)
@@ -158,6 +158,19 @@
/**
+ * Returns a string containing a generated source code of the given script
+ * in the given library.
+ *
+ * Requires there to be a current isolate.
+ *
+ * \return A handle to string containing the source text if no error
+ * occurs.
+ */
+DART_EXPORT Dart_Handle Dart_GenerateScriptSource(Dart_Handle library_url_in,
Ivan Posva 2013/03/13 22:30:38 I am questioning the reason behind adding this API
siva 2013/03/14 05:57:34 The existing API will return the source available
+ Dart_Handle script_url_in);
+
+
+/**
* Sets a breakpoint at line \line_number in \script_url, or the closest
* following line (within the same function) where a breakpoint can be set.
*

Powered by Google App Engine
This is Rietveld 408576698