Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(86)

Side by Side Diff: lib/vm_service_client.dart

Issue 1929063002: pkg/vm_service_client: add getSourceReport to VMServiceReference (Closed) Base URL: https://github.com/dart-lang/vm_service_client.git@master
Patch Set: changelog oops Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 7
8 import 'package:async/async.dart'; 8 import 'package:async/async.dart';
9 import 'package:json_rpc_2/json_rpc_2.dart' as rpc; 9 import 'package:json_rpc_2/json_rpc_2.dart' as rpc;
10 import 'package:stream_channel/stream_channel.dart'; 10 import 'package:stream_channel/stream_channel.dart';
(...skipping 23 matching lines...) Expand all
34 newVMTypeLikeInstanceRef, newVMTypeInstanceRef, newVMInstanceRefOrSentinel; 34 newVMTypeLikeInstanceRef, newVMTypeInstanceRef, newVMInstanceRefOrSentinel;
35 export 'src/isolate.dart' hide newVMIsolateRef; 35 export 'src/isolate.dart' hide newVMIsolateRef;
36 export 'src/library.dart' hide newVMLibraryRef; 36 export 'src/library.dart' hide newVMLibraryRef;
37 export 'src/message.dart' hide newVMMessage; 37 export 'src/message.dart' hide newVMMessage;
38 export 'src/object.dart'; 38 export 'src/object.dart';
39 export 'src/pause_event.dart' hide newVMPauseEvent; 39 export 'src/pause_event.dart' hide newVMPauseEvent;
40 export 'src/script.dart' hide newVMScriptRef, newVMScriptToken; 40 export 'src/script.dart' hide newVMScriptRef, newVMScriptToken;
41 export 'src/sentinel.dart' hide newVMSentinel; 41 export 'src/sentinel.dart' hide newVMSentinel;
42 export 'src/service_version.dart' hide newVMServiceVersion; 42 export 'src/service_version.dart' hide newVMServiceVersion;
43 export 'src/source_location.dart' hide newVMSourceLocation; 43 export 'src/source_location.dart' hide newVMSourceLocation;
44 export 'src/source_report.dart' hide newSourceReport, newSourceReportCoverage,
45 newSourceReportRange;
44 export 'src/stack.dart' hide newVMStack; 46 export 'src/stack.dart' hide newVMStack;
45 export 'src/type_arguments.dart' hide newVMTypeArgumentsRef; 47 export 'src/type_arguments.dart' hide newVMTypeArgumentsRef;
46 export 'src/unresolved_source_location.dart' hide newVMUnresolvedSourceLocation; 48 export 'src/unresolved_source_location.dart' hide newVMUnresolvedSourceLocation;
47 export 'src/vm.dart' hide newVM; 49 export 'src/vm.dart' hide newVM;
48 50
49 /// A [StreamSinkTransformer] that converts encodes JSON messages. 51 /// A [StreamSinkTransformer] that converts encodes JSON messages.
50 /// 52 ///
51 /// We can't use fromStreamTransformer with JSON.encoder because it isn't 53 /// We can't use fromStreamTransformer with JSON.encoder because it isn't
52 /// guaranteed to emit the entire object as a single message, and the WebSocket 54 /// guaranteed to emit the entire object as a single message, and the WebSocket
53 /// protocol cares about that. 55 /// protocol cares about that.
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 /// via [VM.version]. Note also that this doesn't necessarily accurately 207 /// via [VM.version]. Note also that this doesn't necessarily accurately
206 /// reflect the available APIs; for example, VM service versions 3.1, 3.2, and 208 /// reflect the available APIs; for example, VM service versions 3.1, 3.2, and
207 /// 3.3 all reported themseves as version 3.0. 209 /// 3.3 all reported themseves as version 3.0.
208 Future<VMServiceVersion> getVersion() async => 210 Future<VMServiceVersion> getVersion() async =>
209 newVMServiceVersion(await _peer.sendRequest("getVersion", {})); 211 newVMServiceVersion(await _peer.sendRequest("getVersion", {}));
210 212
211 /// Returns information about the Dart VM. 213 /// Returns information about the Dart VM.
212 Future<VM> getVM() async => 214 Future<VM> getVM() async =>
213 newVM(_peer, _streams, await _peer.sendRequest("getVM", {})); 215 newVM(_peer, _streams, await _peer.sendRequest("getVM", {}));
214 } 216 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698