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/dartium/chrome_dartium.dart", | 30 "chrome/dartium/chrome_dartium.dart", |
31 category: "Client", | 31 category: "Client", |
32 dart2jsPath: "chrome/dart2js/chrome_dart2js.dart", | 32 dart2jsPath: "chrome/dart2js/chrome_dart2js.dart", |
33 documented: false, | 33 documented: false, |
34 implementation: true), // Not really, just hiding it for now. | 34 implementation: true), // Not really, just hiding it for now. |
35 | 35 |
36 "collection": const LibraryInfo("collection/collection.dart"), | 36 "collection": const LibraryInfo("collection/collection.dart"), |
37 | 37 |
| 38 "collection-dev": const LibraryInfo( |
| 39 "collection_dev/collection_dev.dart", |
| 40 documented: false), |
| 41 |
38 "core": const LibraryInfo( | 42 "core": const LibraryInfo( |
39 "core/core.dart", | 43 "core/core.dart", |
40 dart2jsPatchPath: "_internal/compiler/implementation/lib/core_patch.dart")
, | 44 dart2jsPatchPath: "_internal/compiler/implementation/lib/core_patch.dart")
, |
41 | 45 |
42 "crypto": const LibraryInfo( | 46 "crypto": const LibraryInfo( |
43 "crypto/crypto.dart"), | 47 "crypto/crypto.dart"), |
44 | 48 |
45 "html": const LibraryInfo( | 49 "html": const LibraryInfo( |
46 "html/dartium/html_dartium.dart", | 50 "html/dartium/html_dartium.dart", |
47 category: "Client", | 51 category: "Client", |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 "uri/uri.dart"), | 104 "uri/uri.dart"), |
101 | 105 |
102 "utf": const LibraryInfo( | 106 "utf": const LibraryInfo( |
103 "utf/utf.dart"), | 107 "utf/utf.dart"), |
104 | 108 |
105 "web_audio": const LibraryInfo( | 109 "web_audio": const LibraryInfo( |
106 "web_audio/dartium/web_audio_dartium.dart", | 110 "web_audio/dartium/web_audio_dartium.dart", |
107 category: "Client", | 111 category: "Client", |
108 dart2jsPath: "web_audio/dart2js/web_audio_dart2js.dart"), | 112 dart2jsPath: "web_audio/dart2js/web_audio_dart2js.dart"), |
109 | 113 |
110 "_collection-dev": const LibraryInfo( | |
111 "_collection_dev/collection_dev.dart", | |
112 category: "Internal", | |
113 documented: false), | |
114 | |
115 "_js_helper": const LibraryInfo( | 114 "_js_helper": const LibraryInfo( |
116 "_internal/compiler/implementation/lib/js_helper.dart", | 115 "_internal/compiler/implementation/lib/js_helper.dart", |
117 category: "Internal", | 116 category: "Internal", |
118 documented: false, | 117 documented: false, |
119 platforms: DART2JS_PLATFORM), | 118 platforms: DART2JS_PLATFORM), |
120 | 119 |
121 "_interceptors": const LibraryInfo( | 120 "_interceptors": const LibraryInfo( |
122 "_internal/compiler/implementation/lib/interceptors.dart", | 121 "_internal/compiler/implementation/lib/interceptors.dart", |
123 category: "Internal", | 122 category: "Internal", |
124 documented: false, | 123 documented: false, |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
191 this.category: "Shared", | 190 this.category: "Shared", |
192 this.dart2jsPath, | 191 this.dart2jsPath, |
193 this.dart2jsPatchPath, | 192 this.dart2jsPatchPath, |
194 this.implementation: false, | 193 this.implementation: false, |
195 this.documented: true, | 194 this.documented: true, |
196 this.platforms: DART2JS_PLATFORM | VM_PLATFORM}); | 195 this.platforms: DART2JS_PLATFORM | VM_PLATFORM}); |
197 | 196 |
198 bool get isDart2jsLibrary => (platforms & DART2JS_PLATFORM) != 0; | 197 bool get isDart2jsLibrary => (platforms & DART2JS_PLATFORM) != 0; |
199 bool get isVmLibrary => (platforms & VM_PLATFORM) != 0; | 198 bool get isVmLibrary => (platforms & VM_PLATFORM) != 0; |
200 } | 199 } |
OLD | NEW |