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 2209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2220 } else { | 2220 } else { |
2221 return 'Breakpoint ${number} at ${location}'; | 2221 return 'Breakpoint ${number} at ${location}'; |
2222 } | 2222 } |
2223 } else { | 2223 } else { |
2224 return 'Uninitialized breakpoint'; | 2224 return 'Uninitialized breakpoint'; |
2225 } | 2225 } |
2226 } | 2226 } |
2227 } | 2227 } |
2228 | 2228 |
2229 | 2229 |
2230 class LibraryDependency { | 2230 class LibraryDependency implements M.LibraryDependency { |
2231 @reflectable final bool isImport; | 2231 @reflectable final bool isImport; |
2232 @reflectable final bool isDeferred; | 2232 @reflectable final bool isDeferred; |
2233 @reflectable final String prefix; | 2233 @reflectable final String prefix; |
2234 @reflectable final Library target; | 2234 @reflectable final Library target; |
2235 | 2235 |
2236 bool get isExport => !isImport; | 2236 bool get isExport => !isImport; |
2237 | 2237 |
2238 LibraryDependency._(this.isImport, this.isDeferred, this.prefix, this.target); | 2238 LibraryDependency._(this.isImport, this.isDeferred, this.prefix, this.target); |
2239 | 2239 |
2240 static _fromMap(map) => new LibraryDependency._(map["isImport"], | 2240 static _fromMap(map) => new LibraryDependency._(map["isImport"], |
(...skipping 2141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4382 var v = list[i]; | 4382 var v = list[i]; |
4383 if ((v is ObservableMap) && _isServiceMap(v)) { | 4383 if ((v is ObservableMap) && _isServiceMap(v)) { |
4384 list[i] = owner.getFromMap(v); | 4384 list[i] = owner.getFromMap(v); |
4385 } else if (v is ObservableList) { | 4385 } else if (v is ObservableList) { |
4386 _upgradeObservableList(v, owner); | 4386 _upgradeObservableList(v, owner); |
4387 } else if (v is ObservableMap) { | 4387 } else if (v is ObservableMap) { |
4388 _upgradeObservableMap(v, owner); | 4388 _upgradeObservableMap(v, owner); |
4389 } | 4389 } |
4390 } | 4390 } |
4391 } | 4391 } |
OLD | NEW |