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 541 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
552 * | 552 * |
553 * \return A handle to the value true if no error occurs. | 553 * \return A handle to the value true if no error occurs. |
554 */ | 554 */ |
555 DART_EXPORT Dart_Handle Dart_GetClassInfo(intptr_t class_id, | 555 DART_EXPORT Dart_Handle Dart_GetClassInfo(intptr_t class_id, |
556 Dart_Handle* class_name, | 556 Dart_Handle* class_name, |
557 intptr_t* library_id, | 557 intptr_t* library_id, |
558 intptr_t* super_class_id, | 558 intptr_t* super_class_id, |
559 Dart_Handle* static_fields); | 559 Dart_Handle* static_fields); |
560 | 560 |
561 | 561 |
| 562 /** Returns info about the given closure \closure. |
| 563 * |
| 564 * \param name receives handle to closure name (string). |
| 565 * Receives a null handle if the closure is anonymous. |
| 566 * \param location.script_url receives a string handle with the url of |
| 567 * the source script that contains the closure. |
| 568 * Receives a null handle if there is no textual location |
| 569 * that corresponds to the fucntion. |
| 570 * \param location.library_id receives the id of the library in which the |
| 571 * function in this frame is defined. |
| 572 * \param location.token_pos receives the token position in the script. |
| 573 * |
| 574 * \return A handle to the value true if no error occurs. |
| 575 */ |
| 576 DART_EXPORT Dart_Handle Dart_GetClosureInfo(Dart_Handle closure, |
| 577 Dart_Handle* name, |
| 578 Dart_CodeLocation* location); |
| 579 |
| 580 |
562 /** | 581 /** |
563 * Returns an array containing all instance field names and values of | 582 * Returns an array containing all instance field names and values of |
564 * the given \object. | 583 * the given \object. |
565 * | 584 * |
566 * Requires there to be a current isolate. | 585 * Requires there to be a current isolate. |
567 * | 586 * |
568 * \return A handle to an array containing field names and | 587 * \return A handle to an array containing field names and |
569 * corresponding field values. The array is empty if the object has | 588 * corresponding field values. The array is empty if the object has |
570 * no fields. If non-empty, field names are at array offsets 2*n, | 589 * no fields. If non-empty, field names are at array offsets 2*n, |
571 * values at offset 2*n+1. Field values may also be a handle to an | 590 * values at offset 2*n+1. Field values may also be a handle to an |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
675 * \param request A REST-like string, which uses '/' to separate | 694 * \param request A REST-like string, which uses '/' to separate |
676 * parameters. The first parameter is always the status type. | 695 * parameters. The first parameter is always the status type. |
677 * | 696 * |
678 * \return The requested status as a JSON formatted string, with the | 697 * \return The requested status as a JSON formatted string, with the |
679 * contents defined by the status plug-in. The caller is responsible | 698 * contents defined by the status plug-in. The caller is responsible |
680 * for freeing this string. | 699 * for freeing this string. |
681 */ | 700 */ |
682 DART_EXPORT char* Dart_GetVmStatus(const char* request); | 701 DART_EXPORT char* Dart_GetVmStatus(const char* request); |
683 | 702 |
684 #endif // INCLUDE_DART_DEBUGGER_API_H_ | 703 #endif // INCLUDE_DART_DEBUGGER_API_H_ |
OLD | NEW |