OLD | NEW |
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 1636 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1647 }).catchError(handleError); | 1647 }).catchError(handleError); |
1648 } | 1648 } |
1649 | 1649 |
1650 return [firstResume.future, secondResume.future]; | 1650 return [firstResume.future, secondResume.future]; |
1651 } | 1651 } |
1652 | 1652 |
1653 Future setName(String newName) { | 1653 Future setName(String newName) { |
1654 return invokeRpc('setName', {'name': newName}); | 1654 return invokeRpc('setName', {'name': newName}); |
1655 } | 1655 } |
1656 | 1656 |
1657 Future setExceptionPauseInfo(String exceptions) { | 1657 Future setExceptionPauseMode(String mode) { |
1658 return invokeRpc('_setExceptionPauseInfo', {'exceptions': exceptions}); | 1658 return invokeRpc('setExceptionPauseMode', {'mode': mode}); |
1659 } | 1659 } |
1660 | 1660 |
1661 Future<ServiceMap> getStack() { | 1661 Future<ServiceMap> getStack() { |
1662 return invokeRpc('getStack', {}); | 1662 return invokeRpc('getStack', {}); |
1663 } | 1663 } |
1664 | 1664 |
1665 Future<ServiceObject> _eval(ServiceObject target, | 1665 Future<ServiceObject> _eval(ServiceObject target, |
1666 String expression) { | 1666 String expression) { |
1667 Map params = { | 1667 Map params = { |
1668 'targetId': target.id, | 1668 'targetId': target.id, |
(...skipping 2295 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3964 var v = list[i]; | 3964 var v = list[i]; |
3965 if ((v is ObservableMap) && _isServiceMap(v)) { | 3965 if ((v is ObservableMap) && _isServiceMap(v)) { |
3966 list[i] = owner.getFromMap(v); | 3966 list[i] = owner.getFromMap(v); |
3967 } else if (v is ObservableList) { | 3967 } else if (v is ObservableList) { |
3968 _upgradeObservableList(v, owner); | 3968 _upgradeObservableList(v, owner); |
3969 } else if (v is ObservableMap) { | 3969 } else if (v is ObservableMap) { |
3970 _upgradeObservableMap(v, owner); | 3970 _upgradeObservableMap(v, owner); |
3971 } | 3971 } |
3972 } | 3972 } |
3973 } | 3973 } |
OLD | NEW |