OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 library libraries; | 5 library libraries; |
6 | 6 |
7 /** | 7 /** |
8 * A bit flag used by [LibraryInfo] indicating that a library is used by dart2js | 8 * A bit flag used by [LibraryInfo] indicating that a library is used by dart2js |
9 */ | 9 */ |
10 const int DART2JS_PLATFORM = 1; | 10 const int DART2JS_PLATFORM = 1; |
(...skipping 12 matching lines...) Expand all Loading... |
23 const Map<String, LibraryInfo> LIBRARIES = const { | 23 const Map<String, LibraryInfo> LIBRARIES = const { |
24 | 24 |
25 "async": const LibraryInfo( | 25 "async": const LibraryInfo( |
26 "async/async.dart", | 26 "async/async.dart", |
27 dart2jsPatchPath: "_internal/compiler/implementation/lib/async_patch.dart"
), | 27 dart2jsPatchPath: "_internal/compiler/implementation/lib/async_patch.dart"
), |
28 | 28 |
29 "chrome": const LibraryInfo( | 29 "chrome": const LibraryInfo( |
30 "chrome/dart2js/chrome_dart2js.dart", | 30 "chrome/dart2js/chrome_dart2js.dart", |
31 category: "Client"), | 31 category: "Client"), |
32 | 32 |
33 "collection": const LibraryInfo("collection/collection.dart"), | 33 "collection": const LibraryInfo( |
| 34 "collection/collection.dart", |
| 35 dart2jsPatchPath: "_internal/compiler/implementation/lib/collection_patch.
dart"), |
34 | 36 |
35 "core": const LibraryInfo( | 37 "core": const LibraryInfo( |
36 "core/core.dart", | 38 "core/core.dart", |
37 dart2jsPatchPath: "_internal/compiler/implementation/lib/core_patch.dart")
, | 39 dart2jsPatchPath: "_internal/compiler/implementation/lib/core_patch.dart")
, |
38 | 40 |
39 "crypto": const LibraryInfo( | 41 "crypto": const LibraryInfo( |
40 "crypto/crypto.dart"), | 42 "crypto/crypto.dart"), |
41 | 43 |
42 "html": const LibraryInfo( | 44 "html": const LibraryInfo( |
43 "html/dartium/html_dartium.dart", | 45 "html/dartium/html_dartium.dart", |
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
194 this.category: "Shared", | 196 this.category: "Shared", |
195 this.dart2jsPath, | 197 this.dart2jsPath, |
196 this.dart2jsPatchPath, | 198 this.dart2jsPatchPath, |
197 this.implementation: false, | 199 this.implementation: false, |
198 this.documented: true, | 200 this.documented: true, |
199 this.platforms: DART2JS_PLATFORM | VM_PLATFORM}); | 201 this.platforms: DART2JS_PLATFORM | VM_PLATFORM}); |
200 | 202 |
201 bool get isDart2jsLibrary => (platforms & DART2JS_PLATFORM) != 0; | 203 bool get isDart2jsLibrary => (platforms & DART2JS_PLATFORM) != 0; |
202 bool get isVmLibrary => (platforms & VM_PLATFORM) != 0; | 204 bool get isVmLibrary => (platforms & VM_PLATFORM) != 0; |
203 } | 205 } |
OLD | NEW |