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 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
153 "_internal/lib/js_mirrors.dart", | 153 "_internal/lib/js_mirrors.dart", |
154 category: "Internal", | 154 category: "Internal", |
155 documented: false, | 155 documented: false, |
156 platforms: DART2JS_PLATFORM), | 156 platforms: DART2JS_PLATFORM), |
157 | 157 |
158 "_js_names": const LibraryInfo( | 158 "_js_names": const LibraryInfo( |
159 "_internal/lib/js_names.dart", | 159 "_internal/lib/js_names.dart", |
160 category: "Internal", | 160 category: "Internal", |
161 documented: false, | 161 documented: false, |
162 platforms: DART2JS_PLATFORM), | 162 platforms: DART2JS_PLATFORM), |
| 163 |
| 164 "_mirror_helper": const LibraryInfo( |
| 165 "_internal/lib/mirror_helper.dart", |
| 166 category: "Internal", |
| 167 documented: false, |
| 168 platforms: DART2JS_PLATFORM) |
163 }; | 169 }; |
164 | 170 |
165 /** | 171 /** |
166 * Information about a "dart:" library. | 172 * Information about a "dart:" library. |
167 */ | 173 */ |
168 class LibraryInfo { | 174 class LibraryInfo { |
169 | 175 |
170 /** | 176 /** |
171 * Path to the library's *.dart file relative to this file. | 177 * Path to the library's *.dart file relative to this file. |
172 */ | 178 */ |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
217 this.category: "Shared", | 223 this.category: "Shared", |
218 this.dart2jsPath, | 224 this.dart2jsPath, |
219 this.dart2jsPatchPath, | 225 this.dart2jsPatchPath, |
220 this.implementation: false, | 226 this.implementation: false, |
221 this.documented: true, | 227 this.documented: true, |
222 this.platforms: DART2JS_PLATFORM | VM_PLATFORM}); | 228 this.platforms: DART2JS_PLATFORM | VM_PLATFORM}); |
223 | 229 |
224 bool get isDart2jsLibrary => (platforms & DART2JS_PLATFORM) != 0; | 230 bool get isDart2jsLibrary => (platforms & DART2JS_PLATFORM) != 0; |
225 bool get isVmLibrary => (platforms & VM_PLATFORM) != 0; | 231 bool get isVmLibrary => (platforms & VM_PLATFORM) != 0; |
226 } | 232 } |
OLD | NEW |