| 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 /// A [ServiceObject] is an object known to the VM service and is tied | 7 /// A [ServiceObject] is an object known to the VM service and is tied |
| 8 /// to an owning [Isolate]. | 8 /// to an owning [Isolate]. |
| 9 abstract class ServiceObject extends Observable { | 9 abstract class ServiceObject extends Observable { |
| 10 /// The owner of this [ServiceObject]. This can be an [Isolate], a | 10 /// The owner of this [ServiceObject]. This can be an [Isolate], a |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 | 24 |
| 25 /// The service type of this object. | 25 /// The service type of this object. |
| 26 @reflectable String get serviceType => _serviceType; | 26 @reflectable String get serviceType => _serviceType; |
| 27 String _serviceType; | 27 String _serviceType; |
| 28 | 28 |
| 29 /// The complete service url of this object. | 29 /// The complete service url of this object. |
| 30 @reflectable String get link => isolate.relativeLink(_id); | 30 @reflectable String get link => isolate.relativeLink(_id); |
| 31 | 31 |
| 32 /// The complete service url of this object with a '#/' prefix. | 32 /// The complete service url of this object with a '#/' prefix. |
| 33 @reflectable String get hashLink => '#/${link}'; | 33 @reflectable String get hashLink => '#/${link}'; |
| 34 set hashLink(var o) { /* silence polymer */ } | 34 @reflectable set hashLink(var o) { /* silence polymer */ } |
| 35 | 35 |
| 36 /// Has this object been fully loaded? | 36 /// Has this object been fully loaded? |
| 37 bool get loaded => _loaded; | 37 bool get loaded => _loaded; |
| 38 bool _loaded = false; | 38 bool _loaded = false; |
| 39 | 39 |
| 40 /// Is this object cacheable? That is, is it impossible for the [id] | 40 /// Is this object cacheable? That is, is it impossible for the [id] |
| 41 /// of this object to change? | 41 /// of this object to change? |
| 42 bool get canCache => false; | 42 bool get canCache => false; |
| 43 | 43 |
| 44 /// Is this object immutable after it is [loaded]? | 44 /// Is this object immutable after it is [loaded]? |
| (...skipping 1209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1254 var v = list[i]; | 1254 var v = list[i]; |
| 1255 if ((v is ObservableMap) && _isServiceMap(v)) { | 1255 if ((v is ObservableMap) && _isServiceMap(v)) { |
| 1256 list[i] = owner.getFromMap(v); | 1256 list[i] = owner.getFromMap(v); |
| 1257 } else if (v is ObservableList) { | 1257 } else if (v is ObservableList) { |
| 1258 _upgradeObservableList(v, owner); | 1258 _upgradeObservableList(v, owner); |
| 1259 } else if (v is ObservableMap) { | 1259 } else if (v is ObservableMap) { |
| 1260 _upgradeObservableMap(v, owner); | 1260 _upgradeObservableMap(v, owner); |
| 1261 } | 1261 } |
| 1262 } | 1262 } |
| 1263 } | 1263 } |
| OLD | NEW |