| 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 // Some value smaller than the object ring, so requesting a large array | 7 // Some value smaller than the object ring, so requesting a large array |
| 8 // doesn't result in an expired ref because the elements lapped it in the | 8 // doesn't result in an expired ref because the elements lapped it in the |
| 9 // object ring. | 9 // object ring. |
| 10 const int kDefaultFieldLimit = 100; | 10 const int kDefaultFieldLimit = 100; |
| (...skipping 1167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1178 var params = { 'reports' : report_kinds }; | 1178 var params = { 'reports' : report_kinds }; |
| 1179 if (script != null) { | 1179 if (script != null) { |
| 1180 params['scriptId'] = script.id; | 1180 params['scriptId'] = script.id; |
| 1181 } | 1181 } |
| 1182 if (startPos != null) { | 1182 if (startPos != null) { |
| 1183 params['tokenPos'] = startPos; | 1183 params['tokenPos'] = startPos; |
| 1184 } | 1184 } |
| 1185 if (endPos != null) { | 1185 if (endPos != null) { |
| 1186 params['endTokenPos'] = endPos; | 1186 params['endTokenPos'] = endPos; |
| 1187 } | 1187 } |
| 1188 return invokeRpc('_getSourceReport', params); | 1188 return invokeRpc('getSourceReport', params); |
| 1189 } | 1189 } |
| 1190 | 1190 |
| 1191 /// Fetches and builds the class hierarchy for this isolate. Returns the | 1191 /// Fetches and builds the class hierarchy for this isolate. Returns the |
| 1192 /// Object class object. | 1192 /// Object class object. |
| 1193 Future<Class> getClassHierarchy() { | 1193 Future<Class> getClassHierarchy() { |
| 1194 return invokeRpc('getClassList', {}) | 1194 return invokeRpc('getClassList', {}) |
| 1195 .then(_loadClasses) | 1195 .then(_loadClasses) |
| 1196 .then(_buildClassHierarchy); | 1196 .then(_buildClassHierarchy); |
| 1197 } | 1197 } |
| 1198 | 1198 |
| (...skipping 2812 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4011 var v = list[i]; | 4011 var v = list[i]; |
| 4012 if ((v is ObservableMap) && _isServiceMap(v)) { | 4012 if ((v is ObservableMap) && _isServiceMap(v)) { |
| 4013 list[i] = owner.getFromMap(v); | 4013 list[i] = owner.getFromMap(v); |
| 4014 } else if (v is ObservableList) { | 4014 } else if (v is ObservableList) { |
| 4015 _upgradeObservableList(v, owner); | 4015 _upgradeObservableList(v, owner); |
| 4016 } else if (v is ObservableMap) { | 4016 } else if (v is ObservableMap) { |
| 4017 _upgradeObservableMap(v, owner); | 4017 _upgradeObservableMap(v, owner); |
| 4018 } | 4018 } |
| 4019 } | 4019 } |
| 4020 } | 4020 } |
| OLD | NEW |