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; |
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
148 this.category: "Shared", | 148 this.category: "Shared", |
149 this.dart2jsPath, | 149 this.dart2jsPath, |
150 this.dart2jsPatchPath, | 150 this.dart2jsPatchPath, |
151 this.implementation: false, | 151 this.implementation: false, |
152 this.documented: true, | 152 this.documented: true, |
153 this.platforms: DART2JS_PLATFORM | VM_PLATFORM}); | 153 this.platforms: DART2JS_PLATFORM | VM_PLATFORM}); |
154 | 154 |
155 bool get isDart2jsLibrary => (platforms & DART2JS_PLATFORM) != 0; | 155 bool get isDart2jsLibrary => (platforms & DART2JS_PLATFORM) != 0; |
156 bool get isVmLibrary => (platforms & VM_PLATFORM) != 0; | 156 bool get isVmLibrary => (platforms & VM_PLATFORM) != 0; |
157 } | 157 } |
OLD | NEW |