| 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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 | 57 |
| 58 "io": const LibraryInfo( | 58 "io": const LibraryInfo( |
| 59 "io/io.dart", | 59 "io/io.dart", |
| 60 category: "Server", | 60 category: "Server", |
| 61 dart2jsPatchPath: "_internal/lib/io_patch.dart"), | 61 dart2jsPatchPath: "_internal/lib/io_patch.dart"), |
| 62 | 62 |
| 63 "isolate": const LibraryInfo( | 63 "isolate": const LibraryInfo( |
| 64 "isolate/isolate.dart", | 64 "isolate/isolate.dart", |
| 65 dart2jsPatchPath: "_internal/lib/isolate_patch.dart"), | 65 dart2jsPatchPath: "_internal/lib/isolate_patch.dart"), |
| 66 | 66 |
| 67 "js": const LibraryInfo( |
| 68 "js/dartium/js_dartium.dart", |
| 69 category: "Client", |
| 70 dart2jsPath: "js/dart2js/js_dart2js.dart"), |
| 71 |
| 67 "json": const LibraryInfo( | 72 "json": const LibraryInfo( |
| 68 "json/json.dart", | 73 "json/json.dart", |
| 69 dart2jsPatchPath: "_internal/lib/json_patch.dart"), | 74 dart2jsPatchPath: "_internal/lib/json_patch.dart"), |
| 70 | 75 |
| 71 "math": const LibraryInfo( | 76 "math": const LibraryInfo( |
| 72 "math/math.dart", | 77 "math/math.dart", |
| 73 dart2jsPatchPath: "_internal/lib/math_patch.dart"), | 78 dart2jsPatchPath: "_internal/lib/math_patch.dart"), |
| 74 | 79 |
| 75 "mirrors": const LibraryInfo( | 80 "mirrors": const LibraryInfo( |
| 76 "mirrors/mirrors.dart", | 81 "mirrors/mirrors.dart", |
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 209 this.category: "Shared", | 214 this.category: "Shared", |
| 210 this.dart2jsPath, | 215 this.dart2jsPath, |
| 211 this.dart2jsPatchPath, | 216 this.dart2jsPatchPath, |
| 212 this.implementation: false, | 217 this.implementation: false, |
| 213 this.documented: true, | 218 this.documented: true, |
| 214 this.platforms: DART2JS_PLATFORM | VM_PLATFORM}); | 219 this.platforms: DART2JS_PLATFORM | VM_PLATFORM}); |
| 215 | 220 |
| 216 bool get isDart2jsLibrary => (platforms & DART2JS_PLATFORM) != 0; | 221 bool get isDart2jsLibrary => (platforms & DART2JS_PLATFORM) != 0; |
| 217 bool get isVmLibrary => (platforms & VM_PLATFORM) != 0; | 222 bool get isVmLibrary => (platforms & VM_PLATFORM) != 0; |
| 218 } | 223 } |
| OLD | NEW |