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 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
134 | 134 |
135 /** | 135 /** |
136 * True if the library contains implementation details for another library. | 136 * True if the library contains implementation details for another library. |
137 * The implication is that these libraries are less commonly used | 137 * The implication is that these libraries are less commonly used |
138 * and that tools like Dart Editor should not show these libraries | 138 * and that tools like Dart Editor should not show these libraries |
139 * in a list of all libraries unless the user specifically asks the tool to | 139 * in a list of all libraries unless the user specifically asks the tool to |
140 * do so. (E.g. "coreimpl" contains implementation for the "core" library). | 140 * do so. (E.g. "coreimpl" contains implementation for the "core" library). |
141 */ | 141 */ |
142 final bool implementation; | 142 final bool implementation; |
143 | 143 |
144 const LibraryInfo(this.path, [ | 144 const LibraryInfo(this.path, { |
145 this.category = "Shared", | 145 this.category: "Shared", |
146 this.dart2jsPath, | 146 this.dart2jsPath, |
147 this.dart2jsPatchPath, | 147 this.dart2jsPatchPath, |
148 this.implementation = false, | 148 this.implementation: false, |
149 this.documented = true, | 149 this.documented: true, |
150 this.platforms = DART2JS_PLATFORM | VM_PLATFORM]); | 150 this.platforms: DART2JS_PLATFORM | VM_PLATFORM}); |
151 | 151 |
152 bool get isDart2jsLibrary => (platforms & DART2JS_PLATFORM) != 0; | 152 bool get isDart2jsLibrary => (platforms & DART2JS_PLATFORM) != 0; |
153 bool get isVmLibrary => (platforms & VM_PLATFORM) != 0; | 153 bool get isVmLibrary => (platforms & VM_PLATFORM) != 0; |
154 } | 154 } |
OLD | NEW |