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 static int LexicalSortName(ServiceObject o1, ServiceObject o2) { | 10 static int LexicalSortName(ServiceObject o1, ServiceObject o2) { |
(...skipping 1106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1117 @observable Script script; | 1117 @observable Script script; |
1118 @observable Class superClass; | 1118 @observable Class superClass; |
1119 | 1119 |
1120 @observable bool isAbstract; | 1120 @observable bool isAbstract; |
1121 @observable bool isConst; | 1121 @observable bool isConst; |
1122 @observable bool isFinalized; | 1122 @observable bool isFinalized; |
1123 @observable bool isPatch; | 1123 @observable bool isPatch; |
1124 @observable bool isImplemented; | 1124 @observable bool isImplemented; |
1125 | 1125 |
1126 @observable int tokenPos; | 1126 @observable int tokenPos; |
| 1127 @observable int endTokenPos; |
1127 | 1128 |
1128 @observable ServiceMap error; | 1129 @observable ServiceMap error; |
1129 | 1130 |
1130 final Allocations newSpace = new Allocations(); | 1131 final Allocations newSpace = new Allocations(); |
1131 final Allocations oldSpace = new Allocations(); | 1132 final Allocations oldSpace = new Allocations(); |
1132 | 1133 |
1133 bool get hasNoAllocations => newSpace.empty && oldSpace.empty; | 1134 bool get hasNoAllocations => newSpace.empty && oldSpace.empty; |
1134 | 1135 |
1135 @reflectable final children = new ObservableList<Class>(); | 1136 @reflectable final children = new ObservableList<Class>(); |
1136 @reflectable final subClasses = new ObservableList<Class>(); | 1137 @reflectable final subClasses = new ObservableList<Class>(); |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1170 | 1171 |
1171 script = map['script']; | 1172 script = map['script']; |
1172 | 1173 |
1173 isAbstract = map['abstract']; | 1174 isAbstract = map['abstract']; |
1174 isConst = map['const']; | 1175 isConst = map['const']; |
1175 isFinalized = map['finalized']; | 1176 isFinalized = map['finalized']; |
1176 isPatch = map['patch']; | 1177 isPatch = map['patch']; |
1177 isImplemented = map['implemented']; | 1178 isImplemented = map['implemented']; |
1178 | 1179 |
1179 tokenPos = map['tokenPos']; | 1180 tokenPos = map['tokenPos']; |
| 1181 endTokenPos = map['endTokenPos']; |
1180 | 1182 |
1181 subClasses.clear(); | 1183 subClasses.clear(); |
1182 subClasses.addAll(map['subclasses']); | 1184 subClasses.addAll(map['subclasses']); |
1183 subClasses.sort(ServiceObject.LexicalSortName); | 1185 subClasses.sort(ServiceObject.LexicalSortName); |
1184 | 1186 |
1185 fields.clear(); | 1187 fields.clear(); |
1186 fields.addAll(map['fields']); | 1188 fields.addAll(map['fields']); |
1187 fields.sort(ServiceObject.LexicalSortName); | 1189 fields.sort(ServiceObject.LexicalSortName); |
1188 | 1190 |
1189 functions.clear(); | 1191 functions.clear(); |
(...skipping 724 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1914 var v = list[i]; | 1916 var v = list[i]; |
1915 if ((v is ObservableMap) && _isServiceMap(v)) { | 1917 if ((v is ObservableMap) && _isServiceMap(v)) { |
1916 list[i] = owner.getFromMap(v); | 1918 list[i] = owner.getFromMap(v); |
1917 } else if (v is ObservableList) { | 1919 } else if (v is ObservableList) { |
1918 _upgradeObservableList(v, owner); | 1920 _upgradeObservableList(v, owner); |
1919 } else if (v is ObservableMap) { | 1921 } else if (v is ObservableMap) { |
1920 _upgradeObservableMap(v, owner); | 1922 _upgradeObservableMap(v, owner); |
1921 } | 1923 } |
1922 } | 1924 } |
1923 } | 1925 } |
OLD | NEW |