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 486 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
497 * Returns the superclass of the given class \cls. | 497 * Returns the superclass of the given class \cls. |
498 * | 498 * |
499 * Requires there to be a current isolate. | 499 * Requires there to be a current isolate. |
500 * | 500 * |
501 * \return A handle to the class object. | 501 * \return A handle to the class object. |
502 */ | 502 */ |
503 DART_EXPORT Dart_Handle Dart_GetSuperclass(Dart_Handle cls); | 503 DART_EXPORT Dart_Handle Dart_GetSuperclass(Dart_Handle cls); |
504 | 504 |
505 | 505 |
506 /** | 506 /** |
| 507 * Returns the supertype of the given instantiated type \cls. |
| 508 * |
| 509 * Requires there to be a current isolate. |
| 510 * |
| 511 * \return A handle to the type object. |
| 512 */ |
| 513 DART_EXPORT Dart_Handle Dart_GetSupertype(Dart_Handle type); |
| 514 |
| 515 |
| 516 /** |
507 * Returns info about the given class \cls_id. | 517 * Returns info about the given class \cls_id. |
508 * | 518 * |
509 * \param class_name receives handle to class name (string) if non-null. | 519 * \param class_name receives handle to class name (string) if non-null. |
510 * \param library receives handle to library in which the class | 520 * \param library receives handle to library in which the class |
511 * is defined, if non-null. | 521 * is defined, if non-null. |
512 * \param super_class_id receives the class id to the super class of | 522 * \param super_class_id receives the class id to the super class of |
513 * \cls_id if non-null. | 523 * \cls_id if non-null. |
514 * \param static_fields If non-null, receives an array containing field | 524 * \param static_fields If non-null, receives an array containing field |
515 * names and values of static fields of the class. Names are | 525 * names and values of static fields of the class. Names are |
516 * at array offsets 2*n, values at offset 2*n+1. | 526 * at array offsets 2*n, values at offset 2*n+1. |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
623 * \param request A REST-like string, which uses '/' to separate | 633 * \param request A REST-like string, which uses '/' to separate |
624 * parameters. The first parameter is always the status type. | 634 * parameters. The first parameter is always the status type. |
625 * | 635 * |
626 * \return The requested status as a JSON formatted string, with the | 636 * \return The requested status as a JSON formatted string, with the |
627 * contents defined by the status plug-in. The caller is responsible | 637 * contents defined by the status plug-in. The caller is responsible |
628 * for freeing this string. | 638 * for freeing this string. |
629 */ | 639 */ |
630 DART_EXPORT char* Dart_GetVmStatus(const char* request); | 640 DART_EXPORT char* Dart_GetVmStatus(const char* request); |
631 | 641 |
632 #endif // INCLUDE_DART_DEBUGGER_API_H_ | 642 #endif // INCLUDE_DART_DEBUGGER_API_H_ |
OLD | NEW |