| 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/compiler/js_lib/async_patch.dart"), | 28 dart2jsPatchPath: "_internal/compiler/js_lib/async_patch.dart"), |
| 29 | 29 |
| 30 "_blink": const LibraryInfo( | |
| 31 "_blink/dartium/_blink_dartium.dart", | |
| 32 category: "Client", | |
| 33 implementation: true, | |
| 34 documented: false), | |
| 35 | |
| 36 "_chrome": const LibraryInfo( | |
| 37 "_chrome/dart2js/chrome_dart2js.dart", | |
| 38 documented: false, | |
| 39 category: "Client"), | |
| 40 | |
| 41 "collection": const LibraryInfo( | 30 "collection": const LibraryInfo( |
| 42 "collection/collection.dart", | 31 "collection/collection.dart", |
| 43 maturity: Maturity.STABLE, | 32 maturity: Maturity.STABLE, |
| 44 dart2jsPatchPath: "_internal/compiler/js_lib/collection_patch.dart"), | 33 dart2jsPatchPath: "_internal/compiler/js_lib/collection_patch.dart"), |
| 45 | 34 |
| 46 "convert": const LibraryInfo( | 35 "convert": const LibraryInfo( |
| 47 "convert/convert.dart", | 36 "convert/convert.dart", |
| 48 maturity: Maturity.STABLE, | 37 maturity: Maturity.STABLE, |
| 49 dart2jsPatchPath: "_internal/compiler/js_lib/convert_patch.dart"), | 38 dart2jsPatchPath: "_internal/compiler/js_lib/convert_patch.dart"), |
| 50 | 39 |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 "math": const LibraryInfo( | 79 "math": const LibraryInfo( |
| 91 "math/math.dart", | 80 "math/math.dart", |
| 92 maturity: Maturity.STABLE, | 81 maturity: Maturity.STABLE, |
| 93 dart2jsPatchPath: "_internal/compiler/js_lib/math_patch.dart"), | 82 dart2jsPatchPath: "_internal/compiler/js_lib/math_patch.dart"), |
| 94 | 83 |
| 95 "mirrors": const LibraryInfo( | 84 "mirrors": const LibraryInfo( |
| 96 "mirrors/mirrors.dart", | 85 "mirrors/mirrors.dart", |
| 97 maturity: Maturity.UNSTABLE, | 86 maturity: Maturity.UNSTABLE, |
| 98 dart2jsPatchPath: "_internal/compiler/js_lib/mirrors_patch.dart"), | 87 dart2jsPatchPath: "_internal/compiler/js_lib/mirrors_patch.dart"), |
| 99 | 88 |
| 100 "profiler": const LibraryInfo( | |
| 101 "profiler/profiler.dart", | |
| 102 maturity: Maturity.UNSTABLE), | |
| 103 | |
| 104 "nativewrappers": const LibraryInfo( | |
| 105 "html/dartium/nativewrappers.dart", | |
| 106 category: "Client", | |
| 107 implementation: true, | |
| 108 documented: false, | |
| 109 platforms: VM_PLATFORM), | |
| 110 | |
| 111 "typed_data": const LibraryInfo( | 89 "typed_data": const LibraryInfo( |
| 112 "typed_data/typed_data.dart", | 90 "typed_data/typed_data.dart", |
| 113 maturity: Maturity.STABLE, | 91 maturity: Maturity.STABLE, |
| 114 dart2jsPatchPath: "_internal/compiler/js_lib/typed_data_patch.dart"), | 92 dart2jsPatchPath: "_internal/compiler/js_lib/typed_data_patch.dart"), |
| 115 | 93 |
| 116 "_native_typed_data": const LibraryInfo( | 94 "_native_typed_data": const LibraryInfo( |
| 117 "_internal/compiler/js_lib/native_typed_data.dart", | 95 "_internal/compiler/js_lib/native_typed_data.dart", |
| 118 category: "Internal", | 96 category: "Internal", |
| 119 implementation: true, | 97 implementation: true, |
| 120 documented: false, | 98 documented: false, |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 170 category: "Internal", | 148 category: "Internal", |
| 171 documented: false, | 149 documented: false, |
| 172 platforms: DART2JS_PLATFORM), | 150 platforms: DART2JS_PLATFORM), |
| 173 | 151 |
| 174 "_js_mirrors": const LibraryInfo( | 152 "_js_mirrors": const LibraryInfo( |
| 175 "_internal/compiler/js_lib/js_mirrors.dart", | 153 "_internal/compiler/js_lib/js_mirrors.dart", |
| 176 category: "Internal", | 154 category: "Internal", |
| 177 documented: false, | 155 documented: false, |
| 178 platforms: DART2JS_PLATFORM), | 156 platforms: DART2JS_PLATFORM), |
| 179 | 157 |
| 180 "_js_names": const LibraryInfo( | |
| 181 "_internal/compiler/js_lib/js_names.dart", | |
| 182 category: "Internal", | |
| 183 documented: false, | |
| 184 platforms: DART2JS_PLATFORM), | |
| 185 | |
| 186 "_js_primitives": const LibraryInfo( | 158 "_js_primitives": const LibraryInfo( |
| 187 "_internal/compiler/js_lib/js_primitives.dart", | 159 "_internal/compiler/js_lib/js_primitives.dart", |
| 188 category: "Internal", | 160 category: "Internal", |
| 189 documented: false, | 161 documented: false, |
| 190 platforms: DART2JS_PLATFORM), | 162 platforms: DART2JS_PLATFORM), |
| 191 | 163 |
| 192 // TODO(ahe): This library is only for dart2dart, perhaps it should use a | 164 // TODO(ahe): This library is only for dart2dart, perhaps it should use a |
| 193 // different platform. | 165 // different platform. |
| 194 "_mirror_helper": const LibraryInfo( | 166 "_mirror_helper": const LibraryInfo( |
| 195 "_internal/compiler/js_lib/mirror_helper.dart", | 167 "_internal/compiler/js_lib/mirror_helper.dart", |
| (...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 324 static const Maturity STABLE = const Maturity(4, "Stable", | 296 static const Maturity STABLE = const Maturity(4, "Stable", |
| 325 "The library is stable. API backwards-compatibility is guaranteed.\n" | 297 "The library is stable. API backwards-compatibility is guaranteed.\n" |
| 326 "However implementation details might change."); | 298 "However implementation details might change."); |
| 327 | 299 |
| 328 static const Maturity LOCKED = const Maturity(5, "Locked", | 300 static const Maturity LOCKED = const Maturity(5, "Locked", |
| 329 "This library will not change except when serious bugs are encountered."); | 301 "This library will not change except when serious bugs are encountered."); |
| 330 | 302 |
| 331 static const Maturity UNSPECIFIED = const Maturity(-1, "Unspecified", | 303 static const Maturity UNSPECIFIED = const Maturity(-1, "Unspecified", |
| 332 "The maturity for this library has not been specified."); | 304 "The maturity for this library has not been specified."); |
| 333 } | 305 } |
| OLD | NEW |