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; |
11 | 11 |
12 /** | 12 /** |
13 * A bit flag used by [LibraryInfo] indicating that a library is used by the VM | 13 * A bit flag used by [LibraryInfo] indicating that a library is used by the VM |
14 */ | 14 */ |
15 const int VM_PLATFORM = 2; | 15 const int VM_PLATFORM = 2; |
16 | 16 |
17 /** | 17 /** |
18 * Mapping of "dart:" library name (e.g. "core") to information about that libra
ry. | 18 * Mapping of "dart:" library name (e.g. "core") to information about that libra
ry. |
19 * This information is structured such that Dart Editor can parse this file | 19 * This information is structured such that Dart Editor can parse this file |
20 * and extract the necessary information without executing it | 20 * and extract the necessary information without executing it |
21 * while other tools can access via execution. | 21 * while other tools can access via execution. |
22 */ | 22 */ |
23 const Map<String, LibraryInfo> LIBRARIES = const { | 23 const Map<String, LibraryInfo> LIBRARIES = const { |
24 | 24 |
25 "async": const LibraryInfo( | 25 "async": const LibraryInfo( |
26 "async/async.dart", | 26 "async/async.dart", |
27 maturity: Maturity.STABLE, | 27 maturity: Maturity.STABLE, |
28 dart2jsPatchPath: "_internal/lib/async_patch.dart"), | 28 dart2jsPatchPath: "_internal/compiler/js_lib/async_patch.dart"), |
29 | 29 |
30 "_blink": const LibraryInfo( | 30 "_blink": const LibraryInfo( |
31 "_blink/dartium/_blink_dartium.dart", | 31 "_blink/dartium/_blink_dartium.dart", |
32 category: "Client", | 32 category: "Client", |
33 implementation: true, | 33 implementation: true, |
34 documented: false, | 34 documented: false, |
35 platforms: VM_PLATFORM), | 35 platforms: VM_PLATFORM), |
36 | 36 |
37 "_chrome": const LibraryInfo( | 37 "_chrome": const LibraryInfo( |
38 "_chrome/dart2js/chrome_dart2js.dart", | 38 "_chrome/dart2js/chrome_dart2js.dart", |
39 documented: false, | 39 documented: false, |
40 category: "Client"), | 40 category: "Client"), |
41 | 41 |
42 "collection": const LibraryInfo( | 42 "collection": const LibraryInfo( |
43 "collection/collection.dart", | 43 "collection/collection.dart", |
44 maturity: Maturity.STABLE, | 44 maturity: Maturity.STABLE, |
45 dart2jsPatchPath: "_internal/lib/collection_patch.dart"), | 45 dart2jsPatchPath: "_internal/compiler/js_lib/collection_patch.dart"), |
46 | 46 |
47 "convert": const LibraryInfo( | 47 "convert": const LibraryInfo( |
48 "convert/convert.dart", | 48 "convert/convert.dart", |
49 maturity: Maturity.STABLE, | 49 maturity: Maturity.STABLE, |
50 dart2jsPatchPath: "_internal/lib/convert_patch.dart"), | 50 dart2jsPatchPath: "_internal/compiler/js_lib/convert_patch.dart"), |
51 | 51 |
52 "core": const LibraryInfo( | 52 "core": const LibraryInfo( |
53 "core/core.dart", | 53 "core/core.dart", |
54 maturity: Maturity.STABLE, | 54 maturity: Maturity.STABLE, |
55 dart2jsPatchPath: "_internal/lib/core_patch.dart"), | 55 dart2jsPatchPath: "_internal/compiler/js_lib/core_patch.dart"), |
56 | 56 |
57 "html": const LibraryInfo( | 57 "html": const LibraryInfo( |
58 "html/dartium/html_dartium.dart", | 58 "html/dartium/html_dartium.dart", |
59 category: "Client", | 59 category: "Client", |
60 maturity: Maturity.WEB_STABLE, | 60 maturity: Maturity.WEB_STABLE, |
61 dart2jsPath: "html/dart2js/html_dart2js.dart"), | 61 dart2jsPath: "html/dart2js/html_dart2js.dart"), |
62 | 62 |
63 "html_common": const LibraryInfo( | 63 "html_common": const LibraryInfo( |
64 "html/html_common/html_common.dart", | 64 "html/html_common/html_common.dart", |
65 category: "Client", | 65 category: "Client", |
66 maturity: Maturity.WEB_STABLE, | 66 maturity: Maturity.WEB_STABLE, |
67 dart2jsPath: "html/html_common/html_common_dart2js.dart", | 67 dart2jsPath: "html/html_common/html_common_dart2js.dart", |
68 documented: false, | 68 documented: false, |
69 implementation: true), | 69 implementation: true), |
70 | 70 |
71 "indexed_db": const LibraryInfo( | 71 "indexed_db": const LibraryInfo( |
72 "indexed_db/dartium/indexed_db_dartium.dart", | 72 "indexed_db/dartium/indexed_db_dartium.dart", |
73 category: "Client", | 73 category: "Client", |
74 maturity: Maturity.WEB_STABLE, | 74 maturity: Maturity.WEB_STABLE, |
75 dart2jsPath: "indexed_db/dart2js/indexed_db_dart2js.dart"), | 75 dart2jsPath: "indexed_db/dart2js/indexed_db_dart2js.dart"), |
76 | 76 |
77 "io": const LibraryInfo( | 77 "io": const LibraryInfo( |
78 "io/io.dart", | 78 "io/io.dart", |
79 category: "Server", | 79 category: "Server", |
80 maturity: Maturity.STABLE, | 80 maturity: Maturity.STABLE, |
81 dart2jsPatchPath: "_internal/lib/io_patch.dart"), | 81 dart2jsPatchPath: "_internal/compiler/js_lib/io_patch.dart"), |
82 | 82 |
83 "isolate": const LibraryInfo( | 83 "isolate": const LibraryInfo( |
84 "isolate/isolate.dart", | 84 "isolate/isolate.dart", |
85 maturity: Maturity.STABLE, | 85 maturity: Maturity.STABLE, |
86 dart2jsPatchPath: "_internal/lib/isolate_patch.dart"), | 86 dart2jsPatchPath: "_internal/compiler/js_lib/isolate_patch.dart"), |
87 | 87 |
88 "js": const LibraryInfo( | 88 "js": const LibraryInfo( |
89 "js/dartium/js_dartium.dart", | 89 "js/dartium/js_dartium.dart", |
90 category: "Client", | 90 category: "Client", |
91 maturity: Maturity.STABLE, | 91 maturity: Maturity.STABLE, |
92 dart2jsPath: "js/dart2js/js_dart2js.dart"), | 92 dart2jsPath: "js/dart2js/js_dart2js.dart"), |
93 | 93 |
94 "math": const LibraryInfo( | 94 "math": const LibraryInfo( |
95 "math/math.dart", | 95 "math/math.dart", |
96 maturity: Maturity.STABLE, | 96 maturity: Maturity.STABLE, |
97 dart2jsPatchPath: "_internal/lib/math_patch.dart"), | 97 dart2jsPatchPath: "_internal/compiler/js_lib/math_patch.dart"), |
98 | 98 |
99 "mirrors": const LibraryInfo( | 99 "mirrors": const LibraryInfo( |
100 "mirrors/mirrors.dart", | 100 "mirrors/mirrors.dart", |
101 maturity: Maturity.UNSTABLE, | 101 maturity: Maturity.UNSTABLE, |
102 dart2jsPatchPath: "_internal/lib/mirrors_patch.dart"), | 102 dart2jsPatchPath: "_internal/compiler/js_lib/mirrors_patch.dart"), |
103 | 103 |
104 "profiler": const LibraryInfo( | 104 "profiler": const LibraryInfo( |
105 "profiler/profiler.dart", | 105 "profiler/profiler.dart", |
106 maturity: Maturity.UNSTABLE), | 106 maturity: Maturity.UNSTABLE), |
107 | 107 |
108 "nativewrappers": const LibraryInfo( | 108 "nativewrappers": const LibraryInfo( |
109 "html/dartium/nativewrappers.dart", | 109 "html/dartium/nativewrappers.dart", |
110 category: "Client", | 110 category: "Client", |
111 implementation: true, | 111 implementation: true, |
112 documented: false, | 112 documented: false, |
113 platforms: VM_PLATFORM), | 113 platforms: VM_PLATFORM), |
114 | 114 |
115 "typed_data": const LibraryInfo( | 115 "typed_data": const LibraryInfo( |
116 "typed_data/typed_data.dart", | 116 "typed_data/typed_data.dart", |
117 maturity: Maturity.STABLE, | 117 maturity: Maturity.STABLE, |
118 dart2jsPatchPath: "_internal/lib/typed_data_patch.dart"), | 118 dart2jsPatchPath: "_internal/compiler/js_lib/typed_data_patch.dart"), |
119 | 119 |
120 "_native_typed_data": const LibraryInfo( | 120 "_native_typed_data": const LibraryInfo( |
121 "_internal/lib/native_typed_data.dart", | 121 "_internal/compiler/js_lib/native_typed_data.dart", |
122 category: "Internal", | 122 category: "Internal", |
123 implementation: true, | 123 implementation: true, |
124 documented: false, | 124 documented: false, |
125 platforms: DART2JS_PLATFORM), | 125 platforms: DART2JS_PLATFORM), |
126 | 126 |
127 "svg": const LibraryInfo( | 127 "svg": const LibraryInfo( |
128 "svg/dartium/svg_dartium.dart", | 128 "svg/dartium/svg_dartium.dart", |
129 category: "Client", | 129 category: "Client", |
130 maturity: Maturity.WEB_STABLE, | 130 maturity: Maturity.WEB_STABLE, |
131 dart2jsPath: "svg/dart2js/svg_dart2js.dart"), | 131 dart2jsPath: "svg/dart2js/svg_dart2js.dart"), |
(...skipping 14 matching lines...) Expand all Loading... |
146 "web_sql/dartium/web_sql_dartium.dart", | 146 "web_sql/dartium/web_sql_dartium.dart", |
147 category: "Client", | 147 category: "Client", |
148 maturity: Maturity.WEB_STABLE, | 148 maturity: Maturity.WEB_STABLE, |
149 dart2jsPath: "web_sql/dart2js/web_sql_dart2js.dart"), | 149 dart2jsPath: "web_sql/dart2js/web_sql_dart2js.dart"), |
150 | 150 |
151 "_internal": const LibraryInfo( | 151 "_internal": const LibraryInfo( |
152 "internal/internal.dart", | 152 "internal/internal.dart", |
153 category: "Internal", | 153 category: "Internal", |
154 documented: false, | 154 documented: false, |
155 dart2jsPatchPath: | 155 dart2jsPatchPath: |
156 "_internal/lib/internal_patch.dart"), | 156 "_internal/compiler/js_lib/internal_patch.dart"), |
157 | 157 |
158 "_js_helper": const LibraryInfo( | 158 "_js_helper": const LibraryInfo( |
159 "_internal/lib/js_helper.dart", | 159 "_internal/compiler/js_lib/js_helper.dart", |
160 category: "Internal", | 160 category: "Internal", |
161 documented: false, | 161 documented: false, |
162 platforms: DART2JS_PLATFORM), | 162 platforms: DART2JS_PLATFORM), |
163 | 163 |
164 "_interceptors": const LibraryInfo( | 164 "_interceptors": const LibraryInfo( |
165 "_internal/lib/interceptors.dart", | 165 "_internal/compiler/js_lib/interceptors.dart", |
166 category: "Internal", | 166 category: "Internal", |
167 documented: false, | 167 documented: false, |
168 platforms: DART2JS_PLATFORM), | 168 platforms: DART2JS_PLATFORM), |
169 | 169 |
170 "_foreign_helper": const LibraryInfo( | 170 "_foreign_helper": const LibraryInfo( |
171 "_internal/lib/foreign_helper.dart", | 171 "_internal/compiler/js_lib/foreign_helper.dart", |
172 category: "Internal", | 172 category: "Internal", |
173 documented: false, | 173 documented: false, |
174 platforms: DART2JS_PLATFORM), | 174 platforms: DART2JS_PLATFORM), |
175 | 175 |
176 "_isolate_helper": const LibraryInfo( | 176 "_isolate_helper": const LibraryInfo( |
177 "_internal/lib/isolate_helper.dart", | 177 "_internal/compiler/js_lib/isolate_helper.dart", |
178 category: "Internal", | 178 category: "Internal", |
179 documented: false, | 179 documented: false, |
180 platforms: DART2JS_PLATFORM), | 180 platforms: DART2JS_PLATFORM), |
181 | 181 |
182 "_js_mirrors": const LibraryInfo( | 182 "_js_mirrors": const LibraryInfo( |
183 "_internal/lib/js_mirrors.dart", | 183 "_internal/compiler/js_lib/js_mirrors.dart", |
184 category: "Internal", | 184 category: "Internal", |
185 documented: false, | 185 documented: false, |
186 platforms: DART2JS_PLATFORM), | 186 platforms: DART2JS_PLATFORM), |
187 | 187 |
188 "_js_names": const LibraryInfo( | 188 "_js_names": const LibraryInfo( |
189 "_internal/lib/js_names.dart", | 189 "_internal/compiler/js_lib/js_names.dart", |
190 category: "Internal", | 190 category: "Internal", |
191 documented: false, | 191 documented: false, |
192 platforms: DART2JS_PLATFORM), | 192 platforms: DART2JS_PLATFORM), |
193 | 193 |
194 "_js_primitives": const LibraryInfo( | 194 "_js_primitives": const LibraryInfo( |
195 "_internal/lib/js_primitives.dart", | 195 "_internal/compiler/js_lib/js_primitives.dart", |
196 category: "Internal", | 196 category: "Internal", |
197 documented: false, | 197 documented: false, |
198 platforms: DART2JS_PLATFORM), | 198 platforms: DART2JS_PLATFORM), |
199 | 199 |
200 // TODO(ahe): This library is only for dart2dart, perhaps it should use a | 200 // TODO(ahe): This library is only for dart2dart, perhaps it should use a |
201 // different platform. | 201 // different platform. |
202 "_mirror_helper": const LibraryInfo( | 202 "_mirror_helper": const LibraryInfo( |
203 "_internal/lib/mirror_helper.dart", | 203 "_internal/compiler/js_lib/mirror_helper.dart", |
204 category: "Internal", | 204 category: "Internal", |
205 documented: false, | 205 documented: false, |
206 platforms: DART2JS_PLATFORM) | 206 platforms: DART2JS_PLATFORM) |
207 }; | 207 }; |
208 | 208 |
209 /** | 209 /** |
210 * Information about a "dart:" library. | 210 * Information about a "dart:" library. |
211 */ | 211 */ |
212 class LibraryInfo { | 212 class LibraryInfo { |
213 | 213 |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
308 static const Maturity STABLE = const Maturity(4, "Stable", | 308 static const Maturity STABLE = const Maturity(4, "Stable", |
309 "The library is stable. API backwards-compatibility is guaranteed.\n" | 309 "The library is stable. API backwards-compatibility is guaranteed.\n" |
310 "However implementation details might change."); | 310 "However implementation details might change."); |
311 | 311 |
312 static const Maturity LOCKED = const Maturity(5, "Locked", | 312 static const Maturity LOCKED = const Maturity(5, "Locked", |
313 "This library will not change except when serious bugs are encountered."); | 313 "This library will not change except when serious bugs are encountered."); |
314 | 314 |
315 static const Maturity UNSPECIFIED = const Maturity(-1, "Unspecified", | 315 static const Maturity UNSPECIFIED = const Maturity(-1, "Unspecified", |
316 "The maturity for this library has not been specified."); | 316 "The maturity for this library has not been specified."); |
317 } | 317 } |
OLD | NEW |