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