| 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 17 matching lines...) Expand all Loading... |
| 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( | 33 "collection": const LibraryInfo( |
| 34 "collection/collection.dart", | 34 "collection/collection.dart", |
| 35 dart2jsPatchPath: "_internal/lib/collection_patch.dart"), | 35 dart2jsPatchPath: "_internal/lib/collection_patch.dart"), |
| 36 | 36 |
| 37 "convert": const LibraryInfo( | 37 "convert": const LibraryInfo( |
| 38 "convert/convert.dart"), | 38 "convert/convert.dart", |
| 39 dart2jsPatchPath: "_internal/lib/convert_patch.dart"), |
| 39 | 40 |
| 40 "core": const LibraryInfo( | 41 "core": const LibraryInfo( |
| 41 "core/core.dart", | 42 "core/core.dart", |
| 42 dart2jsPatchPath: "_internal/lib/core_patch.dart"), | 43 dart2jsPatchPath: "_internal/lib/core_patch.dart"), |
| 43 | 44 |
| 44 "html": const LibraryInfo( | 45 "html": const LibraryInfo( |
| 45 "html/dartium/html_dartium.dart", | 46 "html/dartium/html_dartium.dart", |
| 46 category: "Client", | 47 category: "Client", |
| 47 dart2jsPath: "html/dart2js/html_dart2js.dart"), | 48 dart2jsPath: "html/dart2js/html_dart2js.dart"), |
| 48 | 49 |
| (...skipping 17 matching lines...) Expand all Loading... |
| 66 "isolate": const LibraryInfo( | 67 "isolate": const LibraryInfo( |
| 67 "isolate/isolate.dart", | 68 "isolate/isolate.dart", |
| 68 dart2jsPatchPath: "_internal/lib/isolate_patch.dart"), | 69 dart2jsPatchPath: "_internal/lib/isolate_patch.dart"), |
| 69 | 70 |
| 70 "js": const LibraryInfo( | 71 "js": const LibraryInfo( |
| 71 "js/dartium/js_dartium.dart", | 72 "js/dartium/js_dartium.dart", |
| 72 category: "Client", | 73 category: "Client", |
| 73 dart2jsPath: "js/dart2js/js_dart2js.dart"), | 74 dart2jsPath: "js/dart2js/js_dart2js.dart"), |
| 74 | 75 |
| 75 "json": const LibraryInfo( | 76 "json": const LibraryInfo( |
| 76 "json/json.dart", | 77 "json/json.dart"), |
| 77 dart2jsPatchPath: "_internal/lib/json_patch.dart"), | |
| 78 | 78 |
| 79 "math": const LibraryInfo( | 79 "math": const LibraryInfo( |
| 80 "math/math.dart", | 80 "math/math.dart", |
| 81 dart2jsPatchPath: "_internal/lib/math_patch.dart"), | 81 dart2jsPatchPath: "_internal/lib/math_patch.dart"), |
| 82 | 82 |
| 83 "mirrors": const LibraryInfo( | 83 "mirrors": const LibraryInfo( |
| 84 "mirrors/mirrors.dart", | 84 "mirrors/mirrors.dart", |
| 85 dart2jsPatchPath: "_internal/lib/mirrors_patch.dart"), | 85 dart2jsPatchPath: "_internal/lib/mirrors_patch.dart"), |
| 86 | 86 |
| 87 "nativewrappers": const LibraryInfo( | 87 "nativewrappers": const LibraryInfo( |
| (...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 223 this.category: "Shared", | 223 this.category: "Shared", |
| 224 this.dart2jsPath, | 224 this.dart2jsPath, |
| 225 this.dart2jsPatchPath, | 225 this.dart2jsPatchPath, |
| 226 this.implementation: false, | 226 this.implementation: false, |
| 227 this.documented: true, | 227 this.documented: true, |
| 228 this.platforms: DART2JS_PLATFORM | VM_PLATFORM}); | 228 this.platforms: DART2JS_PLATFORM | VM_PLATFORM}); |
| 229 | 229 |
| 230 bool get isDart2jsLibrary => (platforms & DART2JS_PLATFORM) != 0; | 230 bool get isDart2jsLibrary => (platforms & DART2JS_PLATFORM) != 0; |
| 231 bool get isVmLibrary => (platforms & VM_PLATFORM) != 0; | 231 bool get isVmLibrary => (platforms & VM_PLATFORM) != 0; |
| 232 } | 232 } |
| OLD | NEW |