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 28 matching lines...) Expand all Loading... |
39 static const kFeatureDisabled = 100; | 39 static const kFeatureDisabled = 100; |
40 static const kCannotAddBreakpoint = 102; | 40 static const kCannotAddBreakpoint = 102; |
41 static const kStreamAlreadySubscribed = 103; | 41 static const kStreamAlreadySubscribed = 103; |
42 static const kStreamNotSubscribed = 104; | 42 static const kStreamNotSubscribed = 104; |
43 static const kIsolateMustBeRunnable = 105; | 43 static const kIsolateMustBeRunnable = 105; |
44 static const kIsolateMustBePaused = 106; | 44 static const kIsolateMustBePaused = 106; |
45 static const kIsolateIsReloading = 1000; | 45 static const kIsolateIsReloading = 1000; |
46 static const kFileSystemAlreadyExists = 1001; | 46 static const kFileSystemAlreadyExists = 1001; |
47 static const kFileSystemDoesNotExist = 1002; | 47 static const kFileSystemDoesNotExist = 1002; |
48 static const kFileDoesNotExist = 1003; | 48 static const kFileDoesNotExist = 1003; |
| 49 static const kIsolateReloadFailed = 1004; |
49 | 50 |
50 int code; | 51 int code; |
51 Map data; | 52 Map data; |
52 | 53 |
53 static _getMessage(Map errorMap) { | 54 static _getMessage(Map errorMap) { |
54 Map data = errorMap['data']; | 55 Map data = errorMap['data']; |
55 if (data != null && data['details'] != null) { | 56 if (data != null && data['details'] != null) { |
56 return data['details']; | 57 return data['details']; |
57 } else { | 58 } else { |
58 return errorMap['message']; | 59 return errorMap['message']; |
(...skipping 4055 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4114 var v = list[i]; | 4115 var v = list[i]; |
4115 if ((v is ObservableMap) && _isServiceMap(v)) { | 4116 if ((v is ObservableMap) && _isServiceMap(v)) { |
4116 list[i] = owner.getFromMap(v); | 4117 list[i] = owner.getFromMap(v); |
4117 } else if (v is ObservableList) { | 4118 } else if (v is ObservableList) { |
4118 _upgradeObservableList(v, owner); | 4119 _upgradeObservableList(v, owner); |
4119 } else if (v is ObservableMap) { | 4120 } else if (v is ObservableMap) { |
4120 _upgradeObservableMap(v, owner); | 4121 _upgradeObservableMap(v, owner); |
4121 } | 4122 } |
4122 } | 4123 } |
4123 } | 4124 } |
OLD | NEW |