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