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 /// An RpcException represents an exceptional event that happened | 7 /// An RpcException represents an exceptional event that happened |
8 /// while invoking an rpc. | 8 /// while invoking an rpc. |
9 abstract class RpcException implements Exception { | 9 abstract class RpcException implements Exception { |
10 RpcException(this.message); | 10 RpcException(this.message); |
(...skipping 1188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1199 } | 1199 } |
1200 rethrow; | 1200 rethrow; |
1201 } | 1201 } |
1202 } | 1202 } |
1203 | 1203 |
1204 Future<ServiceObject> addBreakpointAtEntry(ServiceFunction function) { | 1204 Future<ServiceObject> addBreakpointAtEntry(ServiceFunction function) { |
1205 return invokeRpc('addBreakpointAtEntry', | 1205 return invokeRpc('addBreakpointAtEntry', |
1206 { 'functionId': function.id }); | 1206 { 'functionId': function.id }); |
1207 } | 1207 } |
1208 | 1208 |
| 1209 Future<ServiceObject> addBreakOnActivation(Instance closure) { |
| 1210 return invokeRpc('_addBreakpointAtActivation', |
| 1211 { 'objectId': closure.id }); |
| 1212 } |
| 1213 |
1209 Future removeBreakpoint(Breakpoint bpt) { | 1214 Future removeBreakpoint(Breakpoint bpt) { |
1210 return invokeRpc('removeBreakpoint', | 1215 return invokeRpc('removeBreakpoint', |
1211 { 'breakpointId': bpt.id }); | 1216 { 'breakpointId': bpt.id }); |
1212 } | 1217 } |
1213 | 1218 |
1214 Future pause() { | 1219 Future pause() { |
1215 return invokeRpc('pause', {}); | 1220 return invokeRpc('pause', {}); |
1216 } | 1221 } |
1217 | 1222 |
1218 Future resume() { | 1223 Future resume() { |
(...skipping 1935 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3154 var v = list[i]; | 3159 var v = list[i]; |
3155 if ((v is ObservableMap) && _isServiceMap(v)) { | 3160 if ((v is ObservableMap) && _isServiceMap(v)) { |
3156 list[i] = owner.getFromMap(v); | 3161 list[i] = owner.getFromMap(v); |
3157 } else if (v is ObservableList) { | 3162 } else if (v is ObservableList) { |
3158 _upgradeObservableList(v, owner); | 3163 _upgradeObservableList(v, owner); |
3159 } else if (v is ObservableMap) { | 3164 } else if (v is ObservableMap) { |
3160 _upgradeObservableMap(v, owner); | 3165 _upgradeObservableMap(v, owner); |
3161 } | 3166 } |
3162 } | 3167 } |
3163 } | 3168 } |
OLD | NEW |