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 10 matching lines...) Expand all Loading... |
21 * while other tools can access via execution. | 21 * while other tools can access via execution. |
22 */ | 22 */ |
23 const Map<String, LibraryInfo> LIBRARIES = const <LibraryInfo> { | 23 const Map<String, LibraryInfo> LIBRARIES = const <LibraryInfo> { |
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 "collection": const LibraryInfo("collection/collection.dart"), | 29 "collection": const LibraryInfo("collection/collection.dart"), |
30 | 30 |
| 31 "collection-dev": const LibraryInfo("collection_dev/collection_dev.dart"), |
| 32 |
31 "core": const LibraryInfo( | 33 "core": const LibraryInfo( |
32 "core/core.dart", | 34 "core/core.dart", |
33 dart2jsPatchPath: "_internal/compiler/implementation/lib/core_patch.dart")
, | 35 dart2jsPatchPath: "_internal/compiler/implementation/lib/core_patch.dart")
, |
34 | 36 |
35 "crypto": const LibraryInfo( | 37 "crypto": const LibraryInfo( |
36 "crypto/crypto.dart"), | 38 "crypto/crypto.dart"), |
37 | 39 |
38 "html": const LibraryInfo( | 40 "html": const LibraryInfo( |
39 "html/dartium/html_dartium.dart", | 41 "html/dartium/html_dartium.dart", |
40 category: "Client", | 42 category: "Client", |
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
179 this.category: "Shared", | 181 this.category: "Shared", |
180 this.dart2jsPath, | 182 this.dart2jsPath, |
181 this.dart2jsPatchPath, | 183 this.dart2jsPatchPath, |
182 this.implementation: false, | 184 this.implementation: false, |
183 this.documented: true, | 185 this.documented: true, |
184 this.platforms: DART2JS_PLATFORM | VM_PLATFORM}); | 186 this.platforms: DART2JS_PLATFORM | VM_PLATFORM}); |
185 | 187 |
186 bool get isDart2jsLibrary => (platforms & DART2JS_PLATFORM) != 0; | 188 bool get isDart2jsLibrary => (platforms & DART2JS_PLATFORM) != 0; |
187 bool get isVmLibrary => (platforms & VM_PLATFORM) != 0; | 189 bool get isVmLibrary => (platforms & VM_PLATFORM) != 0; |
188 } | 190 } |
OLD | NEW |