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

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

Issue 1241673003: Async-step, first cut. (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
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 1604 matching lines...) Expand 10 before | Expand all | Expand 10 after
1615 ServiceEvent._empty(ServiceObjectOwner owner) : super._empty(owner); 1615 ServiceEvent._empty(ServiceObjectOwner owner) : super._empty(owner);
1616 1616
1617 ServiceEvent.connectionClosed(this.reason) : super._empty(null) { 1617 ServiceEvent.connectionClosed(this.reason) : super._empty(null) {
1618 kind = kConnectionClosed; 1618 kind = kConnectionClosed;
1619 } 1619 }
1620 1620
1621 @observable String kind; 1621 @observable String kind;
1622 @observable Breakpoint breakpoint; 1622 @observable Breakpoint breakpoint;
1623 @observable Frame topFrame; 1623 @observable Frame topFrame;
1624 @observable Instance exception; 1624 @observable Instance exception;
1625 @observable Instance asyncContinuation;
1625 @observable ServiceObject inspectee; 1626 @observable ServiceObject inspectee;
1626 @observable ByteData data; 1627 @observable ByteData data;
1627 @observable int count; 1628 @observable int count;
1628 @observable String reason; 1629 @observable String reason;
1629 @observable String exceptions; 1630 @observable String exceptions;
1630 @observable String bytesAsString; 1631 @observable String bytesAsString;
1631 int chunkIndex, chunkCount, nodeCount; 1632 int chunkIndex, chunkCount, nodeCount;
1632 1633
1633 @observable bool get isPauseEvent { 1634 @observable bool get isPauseEvent {
1634 return (kind == kPauseStart || 1635 return (kind == kPauseStart ||
(...skipping 19 matching lines...) Expand all
1654 if (map['pauseBreakpoints'] != null) { 1655 if (map['pauseBreakpoints'] != null) {
1655 var pauseBpts = map['pauseBreakpoints']; 1656 var pauseBpts = map['pauseBreakpoints'];
1656 if (pauseBpts.length > 0) { 1657 if (pauseBpts.length > 0) {
1657 breakpoint = pauseBpts[0]; 1658 breakpoint = pauseBpts[0];
1658 } 1659 }
1659 } 1660 }
1660 topFrame = map['topFrame']; 1661 topFrame = map['topFrame'];
1661 if (map['exception'] != null) { 1662 if (map['exception'] != null) {
1662 exception = map['exception']; 1663 exception = map['exception'];
1663 } 1664 }
1665 if (map['_asyncContinuation'] != null) {
1666 asyncContinuation = map['_asyncContinuation'];
1667 }
1664 if (map['inspectee'] != null) { 1668 if (map['inspectee'] != null) {
1665 inspectee = map['inspectee']; 1669 inspectee = map['inspectee'];
1666 } 1670 }
1667 if (map['_data'] != null) { 1671 if (map['_data'] != null) {
1668 data = map['_data']; 1672 data = map['_data'];
1669 } 1673 }
1670 if (map['chunkIndex'] != null) { 1674 if (map['chunkIndex'] != null) {
1671 chunkIndex = map['chunkIndex']; 1675 chunkIndex = map['chunkIndex'];
1672 } 1676 }
1673 if (map['chunkCount'] != null) { 1677 if (map['chunkCount'] != null) {
(...skipping 1905 matching lines...) Expand 10 before | Expand all | Expand 10 after
3579 var v = list[i]; 3583 var v = list[i];
3580 if ((v is ObservableMap) && _isServiceMap(v)) { 3584 if ((v is ObservableMap) && _isServiceMap(v)) {
3581 list[i] = owner.getFromMap(v); 3585 list[i] = owner.getFromMap(v);
3582 } else if (v is ObservableList) { 3586 } else if (v is ObservableList) {
3583 _upgradeObservableList(v, owner); 3587 _upgradeObservableList(v, owner);
3584 } else if (v is ObservableMap) { 3588 } else if (v is ObservableMap) {
3585 _upgradeObservableMap(v, owner); 3589 _upgradeObservableMap(v, owner);
3586 } 3590 }
3587 } 3591 }
3588 } 3592 }
OLDNEW
« no previous file with comments | « runtime/observatory/lib/src/elements/debugger.dart ('k') | runtime/observatory/tests/service/async_continuation_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698