| Index: runtime/include/dart_debugger_api.h
|
| ===================================================================
|
| --- runtime/include/dart_debugger_api.h (revision 21008)
|
| +++ runtime/include/dart_debugger_api.h (working copy)
|
| @@ -142,6 +142,28 @@
|
|
|
|
|
| /**
|
| + * Returns an array containing line number and token offset info
|
| + * for the given script.
|
| + *
|
| + * Returns an array of numbers. Null values indicate the beginning of
|
| + * a new line. The first number after null is the line number.
|
| + * The line number is followed by pairs of numbers, with the first value
|
| + * being the "token offset" and the second value being the character offset
|
| + * of the token relative to the beginning of the script.
|
| + * The "token offset" is a value that is used to indicate a location
|
| + * in code, similarly to a "PC" address.
|
| + * Source lines with no tokens are omitted.
|
| + *
|
| + * Requires there to be a current isolate.
|
| + *
|
| + * \return A handle to an array or an error object.
|
| + */
|
| +DART_EXPORT Dart_Handle Dart_ScriptGetTokenInfo(
|
| + intptr_t library_id,
|
| + Dart_Handle script_url_in);
|
| +
|
| +
|
| +/**
|
| * Returns a string containing a generated source code of the given script
|
| * in the given library. This is essentially used to pretty print dart code
|
| * generated from any tool (e.g: dart2dart).
|
|
|