| 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 'dart:collection'; |
| 10 import 'source.dart' show ContentCache, Source, UriKind; | 11 import 'source.dart' show ContentCache, Source, UriKind; |
| 11 import 'ast.dart'; | 12 import 'ast.dart'; |
| 12 import 'engine.dart' show AnalysisContext; | 13 import 'engine.dart' show AnalysisContext; |
| 13 | 14 |
| 14 /** | 15 /** |
| 15 * Instances of the class `DartSdk` represent a Dart SDK installed in a specifie
d location. | 16 * Instances of the class `DartSdk` represent a Dart SDK installed in a specifie
d location. |
| 16 */ | 17 */ |
| 17 abstract class DartSdk { | 18 abstract class DartSdk { |
| 18 /** | 19 /** |
| 19 * The short name of the dart SDK async library. | 20 * The short name of the dart SDK async library. |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 } | 95 } |
| 95 | 96 |
| 96 /** | 97 /** |
| 97 * Instances of the class `LibraryMap` map Dart library URI's to the [SdkLibrary
Impl | 98 * Instances of the class `LibraryMap` map Dart library URI's to the [SdkLibrary
Impl |
| 98 ]. | 99 ]. |
| 99 */ | 100 */ |
| 100 class LibraryMap { | 101 class LibraryMap { |
| 101 /** | 102 /** |
| 102 * A table mapping Dart library URI's to the library. | 103 * A table mapping Dart library URI's to the library. |
| 103 */ | 104 */ |
| 104 Map<String, SdkLibraryImpl> _libraryMap = new Map<String, SdkLibraryImpl>(); | 105 HashMap<String, SdkLibraryImpl> _libraryMap = new HashMap<String, SdkLibraryIm
pl>(); |
| 105 | 106 |
| 106 /** | 107 /** |
| 107 * Return the library with the given URI, or `null` if the URI does not map to
a library. | 108 * Return the library with the given URI, or `null` if the URI does not map to
a library. |
| 108 * | 109 * |
| 109 * @param dartUri the URI of the library to be returned | 110 * @param dartUri the URI of the library to be returned |
| 110 * @return the library with the given URI | 111 * @return the library with the given URI |
| 111 */ | 112 */ |
| 112 SdkLibrary getLibrary(String dartUri) => _libraryMap[dartUri]; | 113 SdkLibrary getLibrary(String dartUri) => _libraryMap[dartUri]; |
| 113 | 114 |
| 114 /** | 115 /** |
| (...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 436 this._implementation = implementation; | 437 this._implementation = implementation; |
| 437 } | 438 } |
| 438 | 439 |
| 439 /** | 440 /** |
| 440 * Record that this library can be run on the VM. | 441 * Record that this library can be run on the VM. |
| 441 */ | 442 */ |
| 442 void setVmLibrary() { | 443 void setVmLibrary() { |
| 443 _platforms |= VM_PLATFORM; | 444 _platforms |= VM_PLATFORM; |
| 444 } | 445 } |
| 445 } | 446 } |
| OLD | NEW |