| OLD | NEW |
| 1 // This code was auto-generated, is not intended to be edited, and is subject to | 1 // This code was auto-generated, is not intended to be edited, and is subject to |
| 2 // significant change. Please see the README file for more information. | 2 // significant change. Please see the README file for more information. |
| 3 library engine.sdk; | 3 library engine.sdk; |
| 4 import 'source.dart' show ContentCache, Source, UriKind; | 4 import 'source.dart' show ContentCache, Source, UriKind; |
| 5 import 'engine.dart' show AnalysisContext; | 5 import 'engine.dart' show AnalysisContext; |
| 6 /** | 6 /** |
| 7 * Represents a single library in the SDK | 7 * Represents a single library in the SDK |
| 8 */ | 8 */ |
| 9 abstract class SdkLibrary { | 9 abstract class SdkLibrary { |
| 10 | 10 |
| (...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 150 * | 150 * |
| 151 * @return `true` if this library can be run on the VM | 151 * @return `true` if this library can be run on the VM |
| 152 */ | 152 */ |
| 153 bool get isVmLibrary => (_platforms & VM_PLATFORM) != 0; | 153 bool get isVmLibrary => (_platforms & VM_PLATFORM) != 0; |
| 154 | 154 |
| 155 /** | 155 /** |
| 156 * Set the name of the category containing the library to the given name. | 156 * Set the name of the category containing the library to the given name. |
| 157 * | 157 * |
| 158 * @param category the name of the category containing the library | 158 * @param category the name of the category containing the library |
| 159 */ | 159 */ |
| 160 void set category(String category2) { | 160 void set category(String category) { |
| 161 this._category = category2; | 161 this._category = category; |
| 162 } | 162 } |
| 163 | 163 |
| 164 /** | 164 /** |
| 165 * Record that this library can be compiled to JavaScript by dart2js. | 165 * Record that this library can be compiled to JavaScript by dart2js. |
| 166 */ | 166 */ |
| 167 void setDart2JsLibrary() { | 167 void setDart2JsLibrary() { |
| 168 _platforms |= DART2JS_PLATFORM; | 168 _platforms |= DART2JS_PLATFORM; |
| 169 } | 169 } |
| 170 | 170 |
| 171 /** | 171 /** |
| 172 * Set whether the library is documented to match the given value. | 172 * Set whether the library is documented to match the given value. |
| 173 * | 173 * |
| 174 * @param documented `true` if the library is documented | 174 * @param documented `true` if the library is documented |
| 175 */ | 175 */ |
| 176 void set documented(bool documented2) { | 176 void set documented(bool documented) { |
| 177 this._documented = documented2; | 177 this._documented = documented; |
| 178 } | 178 } |
| 179 | 179 |
| 180 /** | 180 /** |
| 181 * Set whether the library is an implementation library to match the given val
ue. | 181 * Set whether the library is an implementation library to match the given val
ue. |
| 182 * | 182 * |
| 183 * @param implementation `true` if the library is an implementation library | 183 * @param implementation `true` if the library is an implementation library |
| 184 */ | 184 */ |
| 185 void set implementation(bool implementation2) { | 185 void set implementation(bool implementation) { |
| 186 this._implementation = implementation2; | 186 this._implementation = implementation; |
| 187 } | 187 } |
| 188 | 188 |
| 189 /** | 189 /** |
| 190 * Set the path to the file defining the library to the given path. The path i
s relative to the | 190 * Set the path to the file defining the library to the given path. The path i
s relative to the |
| 191 * `lib` directory within the SDK. | 191 * `lib` directory within the SDK. |
| 192 * | 192 * |
| 193 * @param path the path to the file defining the library | 193 * @param path the path to the file defining the library |
| 194 */ | 194 */ |
| 195 void set path(String path2) { | 195 void set path(String path) { |
| 196 this._path = path2; | 196 this._path = path; |
| 197 } | 197 } |
| 198 | 198 |
| 199 /** | 199 /** |
| 200 * Record that this library can be run on the VM. | 200 * Record that this library can be run on the VM. |
| 201 */ | 201 */ |
| 202 void setVmLibrary() { | 202 void setVmLibrary() { |
| 203 _platforms |= VM_PLATFORM; | 203 _platforms |= VM_PLATFORM; |
| 204 } | 204 } |
| 205 } | 205 } |
| 206 /** | 206 /** |
| (...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 328 | 328 |
| 329 /** | 329 /** |
| 330 * Return the source representing the library with the given `dart:` URI, or `
null` if | 330 * Return the source representing the library with the given `dart:` URI, or `
null` if |
| 331 * the given URI does not denote a library in this SDK. | 331 * the given URI does not denote a library in this SDK. |
| 332 * | 332 * |
| 333 * @param dartUri the URI of the library to be returned | 333 * @param dartUri the URI of the library to be returned |
| 334 * @return the source representing the specified library | 334 * @return the source representing the specified library |
| 335 */ | 335 */ |
| 336 Source mapDartUri(String dartUri); | 336 Source mapDartUri(String dartUri); |
| 337 } | 337 } |
| OLD | NEW |