| OLD | NEW |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef INCLUDE_DART_DEBUGGER_API_H_ | 5 #ifndef INCLUDE_DART_DEBUGGER_API_H_ |
| 6 #define INCLUDE_DART_DEBUGGER_API_H_ | 6 #define INCLUDE_DART_DEBUGGER_API_H_ |
| 7 | 7 |
| 8 #include "include/dart_api.h" | 8 #include "include/dart_api.h" |
| 9 | 9 |
| 10 typedef struct _Dart_Breakpoint* Dart_Breakpoint; | 10 typedef struct _Dart_Breakpoint* Dart_Breakpoint; |
| (...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 140 Dart_Handle script_url_in); | 140 Dart_Handle script_url_in); |
| 141 | 141 |
| 142 | 142 |
| 143 /** | 143 /** |
| 144 * Returns an array containing line number and token offset info | 144 * Returns an array containing line number and token offset info |
| 145 * for the given script. | 145 * for the given script. |
| 146 * | 146 * |
| 147 * Returns an array of numbers. Null values indicate the beginning of | 147 * Returns an array of numbers. Null values indicate the beginning of |
| 148 * a new line. The first number after null is the line number. | 148 * a new line. The first number after null is the line number. |
| 149 * The line number is followed by pairs of numbers, with the first value | 149 * The line number is followed by pairs of numbers, with the first value |
| 150 * being the "token offset" and the second value being the character offset | 150 * being the "token offset" and the second value being the column number |
| 151 * of the token relative to the beginning of the script. | 151 * of the token. |
| 152 * The "token offset" is a value that is used to indicate a location | 152 * The "token offset" is a value that is used to indicate a location |
| 153 * in code, similarly to a "PC" address. | 153 * in code, similarly to a "PC" address. |
| 154 * Source lines with no tokens are omitted. | 154 * Source lines with no tokens are omitted. |
| 155 * | 155 * |
| 156 * Requires there to be a current isolate. | 156 * Requires there to be a current isolate. |
| 157 * | 157 * |
| 158 * \return A handle to an array or an error object. | 158 * \return A handle to an array or an error object. |
| 159 */ | 159 */ |
| 160 DART_EXPORT Dart_Handle Dart_ScriptGetTokenInfo( | 160 DART_EXPORT Dart_Handle Dart_ScriptGetTokenInfo( |
| 161 intptr_t library_id, | 161 intptr_t library_id, |
| (...skipping 514 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 676 * \param request A REST-like string, which uses '/' to separate | 676 * \param request A REST-like string, which uses '/' to separate |
| 677 * parameters. The first parameter is always the status type. | 677 * parameters. The first parameter is always the status type. |
| 678 * | 678 * |
| 679 * \return The requested status as a JSON formatted string, with the | 679 * \return The requested status as a JSON formatted string, with the |
| 680 * contents defined by the status plug-in. The caller is responsible | 680 * contents defined by the status plug-in. The caller is responsible |
| 681 * for freeing this string. | 681 * for freeing this string. |
| 682 */ | 682 */ |
| 683 DART_EXPORT char* Dart_GetVmStatus(const char* request); | 683 DART_EXPORT char* Dart_GetVmStatus(const char* request); |
| 684 | 684 |
| 685 #endif // INCLUDE_DART_DEBUGGER_API_H_ | 685 #endif // INCLUDE_DART_DEBUGGER_API_H_ |
| OLD | NEW |