| 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 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 199 this.category: "Shared", | 201 this.category: "Shared", |
| 200 this.dart2jsPath, | 202 this.dart2jsPath, |
| 201 this.dart2jsPatchPath, | 203 this.dart2jsPatchPath, |
| 202 this.implementation: false, | 204 this.implementation: false, |
| 203 this.documented: true, | 205 this.documented: true, |
| 204 this.platforms: DART2JS_PLATFORM | VM_PLATFORM}); | 206 this.platforms: DART2JS_PLATFORM | VM_PLATFORM}); |
| 205 | 207 |
| 206 bool get isDart2jsLibrary => (platforms & DART2JS_PLATFORM) != 0; | 208 bool get isDart2jsLibrary => (platforms & DART2JS_PLATFORM) != 0; |
| 207 bool get isVmLibrary => (platforms & VM_PLATFORM) != 0; | 209 bool get isVmLibrary => (platforms & VM_PLATFORM) != 0; |
| 208 } | 210 } |
| OLD | NEW |