OLD | NEW |
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, 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 import 'dart:async'; | 5 import 'dart:async'; |
6 import 'dart:convert'; | 6 import 'dart:convert'; |
7 // TODO(nweiz): Conditionally import dart:io when cross-platform libraries work. | 7 // TODO(nweiz): Conditionally import dart:io when cross-platform libraries work. |
8 import 'dart:io'; | 8 import 'dart:io'; |
9 | 9 |
10 import 'package:async/async.dart'; | 10 import 'package:async/async.dart'; |
11 import 'package:json_rpc_2/json_rpc_2.dart' as rpc; | 11 import 'package:json_rpc_2/json_rpc_2.dart' as rpc; |
12 | 12 |
13 import 'src/exceptions.dart'; | 13 import 'src/exceptions.dart'; |
14 import 'src/flag.dart'; | 14 import 'src/flag.dart'; |
15 import 'src/isolate.dart'; | 15 import 'src/isolate.dart'; |
16 import 'src/service_version.dart'; | 16 import 'src/service_version.dart'; |
17 import 'src/stream_manager.dart'; | 17 import 'src/stream_manager.dart'; |
18 import 'src/utils.dart'; | 18 import 'src/utils.dart'; |
19 import 'src/v1_compatibility.dart'; | 19 import 'src/v1_compatibility.dart'; |
20 import 'src/vm.dart'; | 20 import 'src/vm.dart'; |
21 | 21 |
22 export 'src/bound_field.dart' hide newVMBoundField; | 22 export 'src/bound_field.dart' hide newVMBoundField; |
23 export 'src/breakpoint.dart' hide newVMBreakpoint; | 23 export 'src/breakpoint.dart' hide newVMBreakpoint; |
24 export 'src/class.dart' hide newVMClassRef; | 24 export 'src/class.dart' hide newVMClassRef; |
25 export 'src/code.dart' hide newVMCodeRef; | 25 export 'src/code.dart' hide newVMCodeRef; |
26 export 'src/context.dart' hide newVMContextRef; | 26 export 'src/context.dart' hide newVMContextRef; |
27 export 'src/error.dart' hide newVMError, newVMErrorRef; | 27 export 'src/error.dart' hide newVMError, newVMErrorRef; |
28 export 'src/exceptions.dart'; | 28 export 'src/exceptions.dart'; |
| 29 export 'src/extension.dart' show VMServiceExtension; |
29 export 'src/field.dart' hide newVMFieldRef; | 30 export 'src/field.dart' hide newVMFieldRef; |
30 export 'src/flag.dart' hide newVMFlagList; | 31 export 'src/flag.dart' hide newVMFlagList; |
31 export 'src/frame.dart' hide newVMFrame; | 32 export 'src/frame.dart' hide newVMFrame; |
32 export 'src/function.dart' hide newVMFunctionRef; | 33 export 'src/function.dart' hide newVMFunctionRef; |
33 export 'src/instance.dart' hide newVMInstanceRef, newVMInstance, | 34 export 'src/instance.dart' hide newVMInstanceRef, newVMInstance, |
34 newVMTypeLikeInstanceRef, newVMTypeInstanceRef, newVMInstanceRefOrSentinel; | 35 newVMTypeLikeInstanceRef, newVMTypeInstanceRef, newVMInstanceRefOrSentinel; |
35 export 'src/isolate.dart' hide newVMIsolateRef; | 36 export 'src/isolate.dart' hide newVMIsolateRef; |
36 export 'src/library.dart' hide newVMLibraryRef; | 37 export 'src/library.dart' hide newVMLibraryRef; |
37 export 'src/message.dart' hide newVMMessage; | 38 export 'src/message.dart' hide newVMMessage; |
38 export 'src/object.dart'; | 39 export 'src/object.dart'; |
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
211 /// | 212 /// |
212 /// Note that this is distinct from the version of Dart, which is accessible | 213 /// Note that this is distinct from the version of Dart, which is accessible |
213 /// via [VM.version]. | 214 /// via [VM.version]. |
214 Future<VMServiceVersion> getVersion() async => | 215 Future<VMServiceVersion> getVersion() async => |
215 newVMServiceVersion(await _peer.sendRequest("getVersion", {})); | 216 newVMServiceVersion(await _peer.sendRequest("getVersion", {})); |
216 | 217 |
217 /// Returns information about the Dart VM. | 218 /// Returns information about the Dart VM. |
218 Future<VM> getVM() async => | 219 Future<VM> getVM() async => |
219 newVM(_peer, _streams, await _peer.sendRequest("getVM", {})); | 220 newVM(_peer, _streams, await _peer.sendRequest("getVM", {})); |
220 } | 221 } |
OLD | NEW |