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 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
145 "_internal/lib/isolate_helper.dart", | 145 "_internal/lib/isolate_helper.dart", |
146 category: "Internal", | 146 category: "Internal", |
147 documented: false, | 147 documented: false, |
148 platforms: DART2JS_PLATFORM), | 148 platforms: DART2JS_PLATFORM), |
149 | 149 |
150 "_js_mirrors": const LibraryInfo( | 150 "_js_mirrors": const LibraryInfo( |
151 "_internal/lib/js_mirrors.dart", | 151 "_internal/lib/js_mirrors.dart", |
152 category: "Internal", | 152 category: "Internal", |
153 documented: false, | 153 documented: false, |
154 platforms: DART2JS_PLATFORM), | 154 platforms: DART2JS_PLATFORM), |
| 155 |
| 156 "_js_names": const LibraryInfo( |
| 157 "_internal/lib/js_names.dart", |
| 158 category: "Internal", |
| 159 documented: false, |
| 160 platforms: DART2JS_PLATFORM), |
155 }; | 161 }; |
156 | 162 |
157 /** | 163 /** |
158 * Information about a "dart:" library. | 164 * Information about a "dart:" library. |
159 */ | 165 */ |
160 class LibraryInfo { | 166 class LibraryInfo { |
161 | 167 |
162 /** | 168 /** |
163 * Path to the library's *.dart file relative to this file. | 169 * Path to the library's *.dart file relative to this file. |
164 */ | 170 */ |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
209 this.category: "Shared", | 215 this.category: "Shared", |
210 this.dart2jsPath, | 216 this.dart2jsPath, |
211 this.dart2jsPatchPath, | 217 this.dart2jsPatchPath, |
212 this.implementation: false, | 218 this.implementation: false, |
213 this.documented: true, | 219 this.documented: true, |
214 this.platforms: DART2JS_PLATFORM | VM_PLATFORM}); | 220 this.platforms: DART2JS_PLATFORM | VM_PLATFORM}); |
215 | 221 |
216 bool get isDart2jsLibrary => (platforms & DART2JS_PLATFORM) != 0; | 222 bool get isDart2jsLibrary => (platforms & DART2JS_PLATFORM) != 0; |
217 bool get isVmLibrary => (platforms & VM_PLATFORM) != 0; | 223 bool get isVmLibrary => (platforms & VM_PLATFORM) != 0; |
218 } | 224 } |
OLD | NEW |