Chromium Code Reviews| OLD | NEW | 
|---|---|
| 1 # Dart VM Service Protocol 0.0 | 1 # Dart VM Service Protocol 0.0 | 
| 2 | 2 | 
| 3 This document describes _version 0.0_ of the Dart VM Service Protocol. | 3 This document describes _version 0.0_ of the Dart VM Service Protocol. | 
| 4 This protocol is used to communicate with a running Dart Virtual | 4 This protocol is used to communicate with a running Dart Virtual | 
| 5 Machine. | 5 Machine. | 
| 6 | 6 | 
| 7 To use the Service Protocol, start the VM with the *--observe* flag. | 7 To use the Service Protocol, start the VM with the *--observe* flag. | 
| 8 The VM will start a webserver which services protocol requests via WebSocket. | 8 The VM will start a webserver which services protocol requests via WebSocket. | 
| 9 It is possible to make HTTP (non-WebSocket) requests, | 9 It is possible to make HTTP (non-WebSocket) requests, | 
| 10 but this does not allow access to VM _events_ and is not documented | 10 but this does not allow access to VM _events_ and is not documented | 
| (...skipping 1279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1290 | 1290 | 
| 1291 ``` | 1291 ``` | 
| 1292 class Library extends Object { | 1292 class Library extends Object { | 
| 1293 // The name of this library. | 1293 // The name of this library. | 
| 1294 string name; | 1294 string name; | 
| 1295 | 1295 | 
| 1296 // The uri of this library. | 1296 // The uri of this library. | 
| 1297 string uri; | 1297 string uri; | 
| 1298 | 1298 | 
| 1299 // A list of the imports for this library. | 1299 // A list of the imports for this library. | 
| 1300 @Library[] imports; | 1300 LibraryDependency[] dependencies; | 
| 1301 | 1301 | 
| 1302 // A list of the scripts which constitute this library. | 1302 // A list of the scripts which constitute this library. | 
| 1303 @Script[] scripts; | 1303 @Script[] scripts; | 
| 1304 | 1304 | 
| 1305 // A list of the top-level variables in this library. | 1305 // A list of the top-level variables in this library. | 
| 1306 @Field[] variables; | 1306 @Field[] variables; | 
| 1307 | 1307 | 
| 1308 // A list of the top-level functions in this library. | 1308 // A list of the top-level functions in this library. | 
| 1309 @Function[] functions; | 1309 @Function[] functions; | 
| 1310 | 1310 | 
| 1311 // A list of all classes in this library. | 1311 // A list of all classes in this library. | 
| 1312 @Class[] classes; | 1312 @Class[] classes; | 
| 1313 } | 1313 } | 
| 1314 ``` | 1314 ``` | 
| 1315 | 1315 | 
| 1316 A _Library_ provides information about a Dart language library. | 1316 A _Library_ provides information about a Dart language library. | 
| 1317 | 1317 | 
| 1318 ``` | |
| 1319 class LibraryDependency { | |
| 
 
turnidge
2015/05/28 20:10:28
Note for future reviews... Each type has its own #
 
 | |
| 1320 // Is this dependency an import (rather than an export)? | |
| 1321 bool isImport; | |
| 1322 | |
| 1323 // Is this dependency deferred? | |
| 1324 bool isDeferred; | |
| 1325 | |
| 1326 // The prefix of an 'as' import, or null. | |
| 1327 String prefix; | |
| 1328 | |
| 1329 // The library being imported or exported. | |
| 1330 @Library target; | |
| 1331 } | |
| 1332 ``` | |
| 1333 | |
| 1334 A _LibraryDependency_ provides information about an import or export. | |
| 1335 | |
| 1318 ### List | 1336 ### List | 
| 1319 | 1337 | 
| 1320 ``` | 1338 ``` | 
| 1321 class @List extends @Instance { | 1339 class @List extends @Instance { | 
| 1322 // The length of this list. | 1340 // The length of this list. | 
| 1323 int length; | 1341 int length; | 
| 1324 } | 1342 } | 
| 1325 ``` | 1343 ``` | 
| 1326 | 1344 | 
| 1327 _@List_ is a reference to a _List_. | 1345 _@List_ is a reference to a _List_. | 
| (...skipping 357 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1685 // A list of isolates running in the VM. | 1703 // A list of isolates running in the VM. | 
| 1686 @Isolate[] isolates | 1704 @Isolate[] isolates | 
| 1687 } | 1705 } | 
| 1688 ``` | 1706 ``` | 
| 1689 | 1707 | 
| 1690 ## Revision History | 1708 ## Revision History | 
| 1691 | 1709 | 
| 1692 version | comments | 1710 version | comments | 
| 1693 ------- | -------- | 1711 ------- | -------- | 
| 1694 0.0 | draft | 1712 0.0 | draft | 
| OLD | NEW |