| OLD | NEW |
| (Empty) | |
| 1 # Dart VM Service Protocol |
| 2 |
| 3 Description |
| 4 |
| 5 ## Response Format |
| 6 |
| 7 ### VM |
| 8 |
| 9 | keys | values | comments |
| 10 | --- | --- | --- |
| 11 | type | "VM" | |
| 12 | id | String | |
| 13 | targetCPU | String | |
| 14 | hostCPU | String | |
| 15 | date | String | kill? | |
| 16 | version | String | |
| 17 | pid | int | |
| 18 | assertsEnabled | bool | TODO: move to features? | |
| 19 | typeChecksEnabled | bool | TODO: move to features? | |
| 20 | uptime | double | seconds since vm started | |
| 21 | "isolates" | List of [@Isolate](#atIsolate) | |
| 22 |
| 23 ### <a name="atIsolate"></a>@Isolate |
| 24 |
| 25 | keys | values | comments |
| 26 | --- | --- | --- |
| 27 | type | "@Isolate" | |
| 28 | id | String | |
| 29 | mainPort | String | kill? | |
| 30 | name | String | |
| 31 |
| 32 ### Isolate |
| 33 |
| 34 | keys | values | comments |
| 35 | --- | --- | --- |
| 36 | type | "Isolate" | |
| 37 | id | String | |
| 38 | mainPort | String | kill? | |
| 39 | name | String | |
| 40 | entry? | [@Function](#atFunction) | |
| 41 | heaps | ??? | |
| 42 | topFrame? | [@Frame](#atFrame) | |
| 43 | livePorts | int | |
| 44 | pauseOnExit | bool | |
| 45 | pauseEvent? | [DebuggerEvent](#DebuggerEvent) | |
| 46 | rootLib | [@Library](#atLibrary) | |
| 47 | timers | ??? | |
| 48 | tagCounters | ??? | |
| 49 | error? | [Error](#Error) | |
| 50 | canonicalTypeArguments | | kill? | |
| 51 | libs | List of [@Library](#atLibrary) | |
| 52 | features | List of String | |
| 53 |
| 54 |
| 55 ### <a name="atLibrary"></a>@Library |
| 56 |
| 57 | keys | values | comments |
| 58 | --- | --- | --- |
| 59 | type | "@Library" | |
| 60 | id | String | |
| 61 | user_name | String | |
| 62 | name | String |
| 63 | url | String |
| 64 |
| 65 ### <a name="Library"></a>Library |
| 66 |
| 67 | keys | values | comments |
| 68 | --- | --- | --- |
| 69 | type | "Library" | |
| 70 | id | String | |
| 71 | user_name | String | |
| 72 | name | String |
| 73 | classes | List of [@Class](#atClass) | |
| 74 | imports | List of [@Library](#atLibrary) | |
| 75 | variables | List of ... | |
| 76 | functions | List of [@Function](#atFunction) | |
| 77 | scripts | List of [@Script](#atScript) | |
| 78 |
| 79 ### <a name="atScript"></a>@Script |
| 80 | keys | values | comments | example | |
| 81 | --- | --- | --- |
| 82 | type | "@Script" | |
| 83 | id | String |
| 84 | user_name | String |
| 85 | name | String |
| 86 | kind | String |
| 87 |
| 88 ### <a name="Script"></a>Script |
| 89 | keys | values | comments |
| 90 | --- | --- | --- |
| 91 | type | "@Script" | |
| 92 | id | String |
| 93 | user_name | String |
| 94 | name | String |
| 95 | kind | String |
| 96 | owningLibrary | [@Library](#atLibrary) | |
| 97 | source | String |
| 98 | tokenPosTable | List of TokenLine |
| 99 |
| 100 ### <a name="TokenLine"></a>TokenLine |
| 101 | index | value | comments |
| 102 | --- | --- | --- |
| 103 | 0 | integer | line number |
| 104 | 1 | integer | first token position |
| 105 | 2 | integer | first column number |
| 106 | ... | ... | ... |
| 107 | 1 + (2 * k) | integer | kth token position |
| 108 | 2 + (2 * k) | integer | kth column number |
| OLD | NEW |