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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 "io": const LibraryInfo( | 59 "io": const LibraryInfo( |
60 "io/io.dart", | 60 "io/io.dart", |
61 category: "Server", | 61 category: "Server", |
62 dart2jsPatchPath: "_internal/compiler/implementation/lib/io_patch.dart"), | 62 dart2jsPatchPath: "_internal/compiler/implementation/lib/io_patch.dart"), |
63 | 63 |
64 "isolate": const LibraryInfo( | 64 "isolate": const LibraryInfo( |
65 "isolate/isolate.dart", | 65 "isolate/isolate.dart", |
66 dart2jsPatchPath: "_internal/compiler/implementation/lib/isolate_patch.dar
t"), | 66 dart2jsPatchPath: "_internal/compiler/implementation/lib/isolate_patch.dar
t"), |
67 | 67 |
68 "json": const LibraryInfo( | 68 "json": const LibraryInfo( |
69 "json/json.dart", | 69 "json/json.dart"), |
70 dart2jsPatchPath: "_internal/compiler/implementation/lib/json_patch.dart")
, | |
71 | 70 |
72 "math": const LibraryInfo( | 71 "math": const LibraryInfo( |
73 "math/math.dart", | 72 "math/math.dart", |
74 dart2jsPatchPath: "_internal/compiler/implementation/lib/math_patch.dart")
, | 73 dart2jsPatchPath: "_internal/compiler/implementation/lib/math_patch.dart")
, |
75 | 74 |
76 "mirrors": const LibraryInfo( | 75 "mirrors": const LibraryInfo( |
77 "mirrors/mirrors.dart", | 76 "mirrors/mirrors.dart", |
78 dart2jsPatchPath: "_internal/compiler/implementation/lib/mirrors_patch.dar
t"), | 77 dart2jsPatchPath: "_internal/compiler/implementation/lib/mirrors_patch.dar
t"), |
79 | 78 |
80 "nativewrappers": const LibraryInfo( | 79 "nativewrappers": const LibraryInfo( |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
194 this.category: "Shared", | 193 this.category: "Shared", |
195 this.dart2jsPath, | 194 this.dart2jsPath, |
196 this.dart2jsPatchPath, | 195 this.dart2jsPatchPath, |
197 this.implementation: false, | 196 this.implementation: false, |
198 this.documented: true, | 197 this.documented: true, |
199 this.platforms: DART2JS_PLATFORM | VM_PLATFORM}); | 198 this.platforms: DART2JS_PLATFORM | VM_PLATFORM}); |
200 | 199 |
201 bool get isDart2jsLibrary => (platforms & DART2JS_PLATFORM) != 0; | 200 bool get isDart2jsLibrary => (platforms & DART2JS_PLATFORM) != 0; |
202 bool get isVmLibrary => (platforms & VM_PLATFORM) != 0; | 201 bool get isVmLibrary => (platforms & VM_PLATFORM) != 0; |
203 } | 202 } |
OLD | NEW |