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

Unified Diff: pkg/compiler/tool/track_memory.dart

Issue 1859343004: dartfmt pkg/compiler (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/compiler/samples/jsonify/jsonify.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/tool/track_memory.dart
diff --git a/pkg/compiler/tool/track_memory.dart b/pkg/compiler/tool/track_memory.dart
index effd92f000fb3b93fad985d8be7892f6a96b9d8d..c5f5d04aa541fe55553597184c701c014bc89a1d 100644
--- a/pkg/compiler/tool/track_memory.dart
+++ b/pkg/compiler/tool/track_memory.dart
@@ -63,15 +63,11 @@ _resumeMainIsolateIfPaused() async {
}
/// Send a message to the vm service.
-Future _sendMessage(String method, [Map args= const {}]) {
+Future _sendMessage(String method, [Map args = const {}]) {
var id = _requestId++;
_pendingResponses[id] = new Completer();
- socket.add(JSON.encode({
- 'jsonrpc': '2.0',
- 'id': '$id',
- 'method': '$method',
- 'params': args,
- }));
+ socket.add(JSON.encode(
+ {'jsonrpc': '2.0', 'id': '$id', 'method': '$method', 'params': args,}));
return _pendingResponses[id].future;
}
@@ -101,7 +97,8 @@ _handleDebug(Map json) {
var isolateId = json['params']['event']['isolate']['id'];
if (json['params']['event']['kind'] == 'PauseStart') {
_resumeIsolate(isolateId);
- } if (json['params']['event']['kind'] == 'PauseExit') {
+ }
+ if (json['params']['event']['kind'] == 'PauseExit') {
_resumeIsolate(isolateId);
}
}
« no previous file with comments | « pkg/compiler/samples/jsonify/jsonify.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698