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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 "io": const LibraryInfo( | 66 "io": const LibraryInfo( |
67 "io/io.dart", | 67 "io/io.dart", |
68 category: "Server", | 68 category: "Server", |
69 dart2jsPatchPath: "_internal/compiler/implementation/lib/io_patch.dart"), | 69 dart2jsPatchPath: "_internal/compiler/implementation/lib/io_patch.dart"), |
70 | 70 |
71 "isolate": const LibraryInfo( | 71 "isolate": const LibraryInfo( |
72 "isolate/isolate.dart", | 72 "isolate/isolate.dart", |
73 dart2jsPatchPath: "_internal/compiler/implementation/lib/isolate_patch.dar
t"), | 73 dart2jsPatchPath: "_internal/compiler/implementation/lib/isolate_patch.dar
t"), |
74 | 74 |
75 "json": const LibraryInfo( | 75 "json": const LibraryInfo( |
76 "json/json.dart"), | 76 "json/json.dart", |
| 77 dart2jsPatchPath: "_internal/compiler/implementation/lib/json_patch.dart")
, |
77 | 78 |
78 "math": const LibraryInfo( | 79 "math": const LibraryInfo( |
79 "math/math.dart", | 80 "math/math.dart", |
80 dart2jsPatchPath: "_internal/compiler/implementation/lib/math_patch.dart")
, | 81 dart2jsPatchPath: "_internal/compiler/implementation/lib/math_patch.dart")
, |
81 | 82 |
82 "mirrors": const LibraryInfo( | 83 "mirrors": const LibraryInfo( |
83 "mirrors/mirrors.dart", | 84 "mirrors/mirrors.dart", |
84 dart2jsPatchPath: "_internal/compiler/implementation/lib/mirrors_patch.dar
t"), | 85 dart2jsPatchPath: "_internal/compiler/implementation/lib/mirrors_patch.dar
t"), |
85 | 86 |
86 "nativewrappers": const LibraryInfo( | 87 "nativewrappers": const LibraryInfo( |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
190 this.category: "Shared", | 191 this.category: "Shared", |
191 this.dart2jsPath, | 192 this.dart2jsPath, |
192 this.dart2jsPatchPath, | 193 this.dart2jsPatchPath, |
193 this.implementation: false, | 194 this.implementation: false, |
194 this.documented: true, | 195 this.documented: true, |
195 this.platforms: DART2JS_PLATFORM | VM_PLATFORM}); | 196 this.platforms: DART2JS_PLATFORM | VM_PLATFORM}); |
196 | 197 |
197 bool get isDart2jsLibrary => (platforms & DART2JS_PLATFORM) != 0; | 198 bool get isDart2jsLibrary => (platforms & DART2JS_PLATFORM) != 0; |
198 bool get isVmLibrary => (platforms & VM_PLATFORM) != 0; | 199 bool get isVmLibrary => (platforms & VM_PLATFORM) != 0; |
199 } | 200 } |
OLD | NEW |