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 1469 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1480 _loaded = true; | 1480 _loaded = true; |
1481 _upgradeCollection(map, owner); | 1481 _upgradeCollection(map, owner); |
1482 assert(map['isolate'] == null || owner == map['isolate']); | 1482 assert(map['isolate'] == null || owner == map['isolate']); |
1483 kind = map['kind']; | 1483 kind = map['kind']; |
1484 notifyPropertyChange(#isPauseEvent, 0, 1); | 1484 notifyPropertyChange(#isPauseEvent, 0, 1); |
1485 name = 'ServiceEvent $kind'; | 1485 name = 'ServiceEvent $kind'; |
1486 vmName = name; | 1486 vmName = name; |
1487 if (map['breakpoint'] != null) { | 1487 if (map['breakpoint'] != null) { |
1488 breakpoint = map['breakpoint']; | 1488 breakpoint = map['breakpoint']; |
1489 } | 1489 } |
| 1490 // TODO(turnidge): Expose the full list of breakpoints. For now |
| 1491 // we just pretend like there is only one active breakpoint. |
| 1492 if (map['pauseBreakpoints'] != null) { |
| 1493 var pauseBpts = map['pauseBreakpoints']; |
| 1494 if (pauseBpts.length > 0) { |
| 1495 breakpoint = pauseBpts[0]; |
| 1496 } |
| 1497 } |
1490 topFrame = map['topFrame']; | 1498 topFrame = map['topFrame']; |
1491 if (map['exception'] != null) { | 1499 if (map['exception'] != null) { |
1492 exception = map['exception']; | 1500 exception = map['exception']; |
1493 } | 1501 } |
1494 if (map['inspectee'] != null) { | 1502 if (map['inspectee'] != null) { |
1495 inspectee = map['inspectee']; | 1503 inspectee = map['inspectee']; |
1496 } | 1504 } |
1497 if (map['_data'] != null) { | 1505 if (map['_data'] != null) { |
1498 data = map['_data']; | 1506 data = map['_data']; |
1499 } | 1507 } |
(...skipping 1740 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3240 var v = list[i]; | 3248 var v = list[i]; |
3241 if ((v is ObservableMap) && _isServiceMap(v)) { | 3249 if ((v is ObservableMap) && _isServiceMap(v)) { |
3242 list[i] = owner.getFromMap(v); | 3250 list[i] = owner.getFromMap(v); |
3243 } else if (v is ObservableList) { | 3251 } else if (v is ObservableList) { |
3244 _upgradeObservableList(v, owner); | 3252 _upgradeObservableList(v, owner); |
3245 } else if (v is ObservableMap) { | 3253 } else if (v is ObservableMap) { |
3246 _upgradeObservableMap(v, owner); | 3254 _upgradeObservableMap(v, owner); |
3247 } | 3255 } |
3248 } | 3256 } |
3249 } | 3257 } |
OLD | NEW |