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

Side by Side Diff: runtime/observatory/lib/src/service/object.dart

Issue 1243893003: Add missing toInt call (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 5 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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 part of service; 5 part of service;
6 6
7 /// Helper function for canceling a Future<StreamSubscription>. 7 /// Helper function for canceling a Future<StreamSubscription>.
8 Future cancelFutureSubscription( 8 Future cancelFutureSubscription(
9 Future<StreamSubscription> subscriptionFuture) async { 9 Future<StreamSubscription> subscriptionFuture) async {
10 if (subscriptionFuture != null) { 10 if (subscriptionFuture != null) {
(...skipping 1688 matching lines...) Expand 10 before | Expand all | Expand 10 after
1699 map['_debuggerSettings']['_exceptions'] != null) { 1699 map['_debuggerSettings']['_exceptions'] != null) {
1700 exceptions = map['_debuggerSettings']['_exceptions']; 1700 exceptions = map['_debuggerSettings']['_exceptions'];
1701 } 1701 }
1702 if (map['bytes'] != null) { 1702 if (map['bytes'] != null) {
1703 var bytes = decodeBase64(map['bytes']); 1703 var bytes = decodeBase64(map['bytes']);
1704 bytesAsString = UTF8.decode(bytes); 1704 bytesAsString = UTF8.decode(bytes);
1705 } 1705 }
1706 if (map['logRecord'] != null) { 1706 if (map['logRecord'] != null) {
1707 logRecord = map['logRecord']; 1707 logRecord = map['logRecord'];
1708 logRecord['time'] = 1708 logRecord['time'] =
1709 new DateTime.fromMillisecondsSinceEpoch(logRecord['time']); 1709 new DateTime.fromMillisecondsSinceEpoch(logRecord['time'].toInt());
1710 logRecord['level'] = _findLogLevel(logRecord['level']); 1710 logRecord['level'] = _findLogLevel(logRecord['level']);
1711 } 1711 }
1712 } 1712 }
1713 1713
1714 String toString() { 1714 String toString() {
1715 if (data == null) { 1715 if (data == null) {
1716 return "ServiceEvent(owner='${owner.id}', kind='${kind}')"; 1716 return "ServiceEvent(owner='${owner.id}', kind='${kind}')";
1717 } else { 1717 } else {
1718 return "ServiceEvent(owner='${owner.id}', kind='${kind}', " 1718 return "ServiceEvent(owner='${owner.id}', kind='${kind}', "
1719 "data.lengthInBytes=${data.lengthInBytes})"; 1719 "data.lengthInBytes=${data.lengthInBytes})";
(...skipping 1881 matching lines...) Expand 10 before | Expand all | Expand 10 after
3601 var v = list[i]; 3601 var v = list[i];
3602 if ((v is ObservableMap) && _isServiceMap(v)) { 3602 if ((v is ObservableMap) && _isServiceMap(v)) {
3603 list[i] = owner.getFromMap(v); 3603 list[i] = owner.getFromMap(v);
3604 } else if (v is ObservableList) { 3604 } else if (v is ObservableList) {
3605 _upgradeObservableList(v, owner); 3605 _upgradeObservableList(v, owner);
3606 } else if (v is ObservableMap) { 3606 } else if (v is ObservableMap) {
3607 _upgradeObservableMap(v, owner); 3607 _upgradeObservableMap(v, owner);
3608 } 3608 }
3609 } 3609 }
3610 } 3610 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698