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