| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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 // This code was auto-generated, is not intended to be edited, and is subject to | 5 // This code was auto-generated, is not intended to be edited, and is subject to |
| 6 // significant change. Please see the README file for more information. | 6 // significant change. Please see the README file for more information. |
| 7 | 7 |
| 8 library engine.sdk; | 8 library engine.sdk; |
| 9 | 9 |
| 10 import 'source.dart' show ContentCache, Source, UriKind; | 10 import 'source.dart' show ContentCache, Source, UriKind; |
| (...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 236 | 236 |
| 237 /** | 237 /** |
| 238 * The value of the [PLATFORMS] parameter used to specify that the library can | 238 * The value of the [PLATFORMS] parameter used to specify that the library can |
| 239 * be used on the VM. | 239 * be used on the VM. |
| 240 */ | 240 */ |
| 241 static String _VM_PLATFORM = "VM_PLATFORM"; | 241 static String _VM_PLATFORM = "VM_PLATFORM"; |
| 242 | 242 |
| 243 /** | 243 /** |
| 244 * A flag indicating whether the dart2js path should be used when it is availa
ble. | 244 * A flag indicating whether the dart2js path should be used when it is availa
ble. |
| 245 */ | 245 */ |
| 246 bool _useDart2jsPaths = false; | 246 final bool _useDart2jsPaths; |
| 247 | 247 |
| 248 /** | 248 /** |
| 249 * The library map that is populated by visiting the AST structure parsed from
the contents of | 249 * The library map that is populated by visiting the AST structure parsed from
the contents of |
| 250 * the libraries file. | 250 * the libraries file. |
| 251 */ | 251 */ |
| 252 LibraryMap _librariesMap = new LibraryMap(); | 252 LibraryMap _librariesMap = new LibraryMap(); |
| 253 | 253 |
| 254 /** | 254 /** |
| 255 * Initialize a newly created library builder to use the dart2js path if the g
iven value is | 255 * Initialize a newly created library builder to use the dart2js path if the g
iven value is |
| 256 * `true`. | 256 * `true`. |
| 257 * | 257 * |
| 258 * @param useDart2jsPaths `true` if the dart2js path should be used when it is
available | 258 * @param useDart2jsPaths `true` if the dart2js path should be used when it is
available |
| 259 */ | 259 */ |
| 260 SdkLibrariesReader_LibraryBuilder(bool useDart2jsPaths) { | 260 SdkLibrariesReader_LibraryBuilder(this._useDart2jsPaths); |
| 261 this._useDart2jsPaths = useDart2jsPaths; | |
| 262 } | |
| 263 | 261 |
| 264 /** | 262 /** |
| 265 * Return the library map that was populated by visiting the AST structure par
sed from the | 263 * Return the library map that was populated by visiting the AST structure par
sed from the |
| 266 * contents of the libraries file. | 264 * contents of the libraries file. |
| 267 * | 265 * |
| 268 * @return the library map describing the contents of the SDK | 266 * @return the library map describing the contents of the SDK |
| 269 */ | 267 */ |
| 270 LibraryMap get librariesMap => _librariesMap; | 268 LibraryMap get librariesMap => _librariesMap; |
| 271 | 269 |
| 272 @override | 270 @override |
| (...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 433 | 431 |
| 434 /** | 432 /** |
| 435 * Return the source representing the library with the given `dart:` URI, or `
null` if | 433 * Return the source representing the library with the given `dart:` URI, or `
null` if |
| 436 * the given URI does not denote a library in this SDK. | 434 * the given URI does not denote a library in this SDK. |
| 437 * | 435 * |
| 438 * @param dartUri the URI of the library to be returned | 436 * @param dartUri the URI of the library to be returned |
| 439 * @return the source representing the specified library | 437 * @return the source representing the specified library |
| 440 */ | 438 */ |
| 441 Source mapDartUri(String dartUri); | 439 Source mapDartUri(String dartUri); |
| 442 } | 440 } |
| OLD | NEW |