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 24 matching lines...) Expand all Loading... |
35 static const kInvalidRequest = -32600; | 35 static const kInvalidRequest = -32600; |
36 static const kMethodNotFound = -32601; | 36 static const kMethodNotFound = -32601; |
37 static const kInvalidParams = -32602; | 37 static const kInvalidParams = -32602; |
38 static const kInternalError = -32603; | 38 static const kInternalError = -32603; |
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 = 107; | 45 static const kIsolateIsReloading = 1000; |
| 46 static const kFileSystemAlreadyExists = 1001; |
| 47 static const kFileSystemDoesNotExist = 1002; |
| 48 static const kFileDoesNotExist = 1003; |
46 | 49 |
47 int code; | 50 int code; |
48 Map data; | 51 Map data; |
49 | 52 |
50 static _getMessage(Map errorMap) { | 53 static _getMessage(Map errorMap) { |
51 Map data = errorMap['data']; | 54 Map data = errorMap['data']; |
52 if (data != null && data['details'] != null) { | 55 if (data != null && data['details'] != null) { |
53 return data['details']; | 56 return data['details']; |
54 } else { | 57 } else { |
55 return errorMap['message']; | 58 return errorMap['message']; |
(...skipping 4055 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4111 var v = list[i]; | 4114 var v = list[i]; |
4112 if ((v is ObservableMap) && _isServiceMap(v)) { | 4115 if ((v is ObservableMap) && _isServiceMap(v)) { |
4113 list[i] = owner.getFromMap(v); | 4116 list[i] = owner.getFromMap(v); |
4114 } else if (v is ObservableList) { | 4117 } else if (v is ObservableList) { |
4115 _upgradeObservableList(v, owner); | 4118 _upgradeObservableList(v, owner); |
4116 } else if (v is ObservableMap) { | 4119 } else if (v is ObservableMap) { |
4117 _upgradeObservableMap(v, owner); | 4120 _upgradeObservableMap(v, owner); |
4118 } | 4121 } |
4119 } | 4122 } |
4120 } | 4123 } |
OLD | NEW |