| 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 18 matching lines...) Expand all Loading... |
| 29 | 29 |
| 30 "coreimpl": const LibraryInfo( | 30 "coreimpl": const LibraryInfo( |
| 31 "coreimpl/coreimpl.dart", | 31 "coreimpl/coreimpl.dart", |
| 32 implementation: true, | 32 implementation: true, |
| 33 dart2jsPath: "compiler/implementation/lib/coreimpl.dart", | 33 dart2jsPath: "compiler/implementation/lib/coreimpl.dart", |
| 34 dart2jsPatchPath: "compiler/implementation/lib/coreimpl_patch.dart"), | 34 dart2jsPatchPath: "compiler/implementation/lib/coreimpl_patch.dart"), |
| 35 | 35 |
| 36 "crypto": const LibraryInfo( | 36 "crypto": const LibraryInfo( |
| 37 "crypto/crypto.dart"), | 37 "crypto/crypto.dart"), |
| 38 | 38 |
| 39 // dom/dom_frog.dart is a placeholder for dartium DOM. | |
| 40 "dom_deprecated": const LibraryInfo( | |
| 41 "dom/dom_dart2js.dart", | |
| 42 implementation: true, | |
| 43 dart2jsPath: "dom/dart2js/dom_dart2js.dart", | |
| 44 documented: false), | |
| 45 | |
| 46 "html": const LibraryInfo( | 39 "html": const LibraryInfo( |
| 47 "html/html_dartium.dart", | 40 "html/html_dartium.dart", |
| 48 category: "Client", | 41 category: "Client", |
| 49 dart2jsPath: "html/dart2js/html_dart2js.dart"), | 42 dart2jsPath: "html/dart2js/html_dart2js.dart"), |
| 50 | 43 |
| 51 "io": const LibraryInfo( | 44 "io": const LibraryInfo( |
| 52 "io/io_runtime.dart", | 45 "io/io_runtime.dart", |
| 53 category: "Server", | 46 category: "Server", |
| 54 dart2jsPath: "compiler/implementation/lib/io.dart"), | 47 dart2jsPath: "compiler/implementation/lib/io.dart"), |
| 55 | 48 |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 152 this.category = "Shared", | 145 this.category = "Shared", |
| 153 this.dart2jsPath, | 146 this.dart2jsPath, |
| 154 this.dart2jsPatchPath, | 147 this.dart2jsPatchPath, |
| 155 this.implementation = false, | 148 this.implementation = false, |
| 156 this.documented = true, | 149 this.documented = true, |
| 157 this.platforms = DART2JS_PLATFORM | VM_PLATFORM]); | 150 this.platforms = DART2JS_PLATFORM | VM_PLATFORM]); |
| 158 | 151 |
| 159 bool get isDart2jsLibrary => (platforms & DART2JS_PLATFORM) != 0; | 152 bool get isDart2jsLibrary => (platforms & DART2JS_PLATFORM) != 0; |
| 160 bool get isVmLibrary => (platforms & VM_PLATFORM) != 0; | 153 bool get isVmLibrary => (platforms & VM_PLATFORM) != 0; |
| 161 } | 154 } |
| OLD | NEW |