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 1154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1165 } | 1165 } |
1166 rethrow; | 1166 rethrow; |
1167 } | 1167 } |
1168 } | 1168 } |
1169 | 1169 |
1170 Future<ServiceObject> addBreakpointAtEntry(ServiceFunction function) { | 1170 Future<ServiceObject> addBreakpointAtEntry(ServiceFunction function) { |
1171 return invokeRpc('addBreakpointAtEntry', | 1171 return invokeRpc('addBreakpointAtEntry', |
1172 { 'functionId': function.id }); | 1172 { 'functionId': function.id }); |
1173 } | 1173 } |
1174 | 1174 |
| 1175 Future<ServiceObject> addBreakOnActivation(Instance closure) { |
| 1176 return invokeRpc('addBreakpointAtActivation', |
| 1177 { 'objectId': closure.id }); |
| 1178 } |
| 1179 |
1175 Future removeBreakpoint(Breakpoint bpt) { | 1180 Future removeBreakpoint(Breakpoint bpt) { |
1176 return invokeRpc('removeBreakpoint', | 1181 return invokeRpc('removeBreakpoint', |
1177 { 'breakpointId': bpt.id }); | 1182 { 'breakpointId': bpt.id }); |
1178 } | 1183 } |
1179 | 1184 |
1180 Future pause() { | 1185 Future pause() { |
1181 return invokeRpc('pause', {}); | 1186 return invokeRpc('pause', {}); |
1182 } | 1187 } |
1183 | 1188 |
1184 Future resume() { | 1189 Future resume() { |
(...skipping 1925 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3110 var v = list[i]; | 3115 var v = list[i]; |
3111 if ((v is ObservableMap) && _isServiceMap(v)) { | 3116 if ((v is ObservableMap) && _isServiceMap(v)) { |
3112 list[i] = owner.getFromMap(v); | 3117 list[i] = owner.getFromMap(v); |
3113 } else if (v is ObservableList) { | 3118 } else if (v is ObservableList) { |
3114 _upgradeObservableList(v, owner); | 3119 _upgradeObservableList(v, owner); |
3115 } else if (v is ObservableMap) { | 3120 } else if (v is ObservableMap) { |
3116 _upgradeObservableMap(v, owner); | 3121 _upgradeObservableMap(v, owner); |
3117 } | 3122 } |
3118 } | 3123 } |
3119 } | 3124 } |
OLD | NEW |