| 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 | 3 |
| 4 library engine.sdk; | 4 library engine.sdk; |
| 5 | 5 |
| 6 import 'dart:uri'; | 6 import 'dart:uri'; |
| 7 import 'java_core.dart'; | 7 import 'java_core.dart'; |
| 8 import 'java_engine.dart'; | 8 import 'java_engine.dart'; |
| 9 import 'source.dart' show Source, ContentCache; | 9 import 'source.dart' show ContentCache, Source, UriKind; |
| 10 import 'engine.dart' show AnalysisContext; | 10 import 'engine.dart' show AnalysisContext; |
| 11 | 11 |
| 12 /** | 12 /** |
| 13 * Represents a single library in the SDK | 13 * Represents a single library in the SDK |
| 14 */ | 14 */ |
| 15 abstract class SdkLibrary { | 15 abstract class SdkLibrary { |
| 16 /** | 16 /** |
| 17 * Return the name of the category containing the library. | 17 * Return the name of the category containing the library. |
| 18 * @return the name of the category containing the library | 18 * @return the name of the category containing the library |
| 19 */ | 19 */ |
| (...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 210 abstract class DartSdk { | 210 abstract class DartSdk { |
| 211 /** | 211 /** |
| 212 * The short name of the dart SDK core library. | 212 * The short name of the dart SDK core library. |
| 213 */ | 213 */ |
| 214 static String DART_CORE = "dart:core"; | 214 static String DART_CORE = "dart:core"; |
| 215 /** | 215 /** |
| 216 * The short name of the dart SDK html library. | 216 * The short name of the dart SDK html library. |
| 217 */ | 217 */ |
| 218 static String DART_HTML = "dart:html"; | 218 static String DART_HTML = "dart:html"; |
| 219 /** | 219 /** |
| 220 * Return the source representing the file with the given URI. |
| 221 * @param contentCache the content cache used to access the contents of the ma
pped source |
| 222 * @param kind the kind of URI that was originally resolved in order to produc
e an encoding with |
| 223 * the given URI |
| 224 * @param uri the URI of the file to be returned |
| 225 * @return the source representing the specified file |
| 226 */ |
| 227 Source fromEncoding(ContentCache contentCache, UriKind kind, Uri uri); |
| 228 /** |
| 220 * Return the {@link AnalysisContext} used for all of the sources in this {@li
nk DartSdk}. | 229 * Return the {@link AnalysisContext} used for all of the sources in this {@li
nk DartSdk}. |
| 221 * @return the {@link AnalysisContext} used for all of the sources in this {@l
ink DartSdk} | 230 * @return the {@link AnalysisContext} used for all of the sources in this {@l
ink DartSdk} |
| 222 */ | 231 */ |
| 223 AnalysisContext get context; | 232 AnalysisContext get context; |
| 224 /** | 233 /** |
| 225 * Return an array containing all of the libraries defined in this SDK. | 234 * Return an array containing all of the libraries defined in this SDK. |
| 226 * @return the libraries defined in this SDK | 235 * @return the libraries defined in this SDK |
| 227 */ | 236 */ |
| 228 List<SdkLibrary> get sdkLibraries; | 237 List<SdkLibrary> get sdkLibraries; |
| 229 /** | 238 /** |
| 230 * Return the revision number of this SDK, or {@code "0"} if the revision numb
er cannot be | 239 * Return the revision number of this SDK, or {@code "0"} if the revision numb
er cannot be |
| 231 * discovered. | 240 * discovered. |
| 232 * @return the revision number of this SDK | 241 * @return the revision number of this SDK |
| 233 */ | 242 */ |
| 234 String get sdkVersion; | 243 String get sdkVersion; |
| 235 /** | 244 /** |
| 236 * Return an array containing the library URI's for the libraries defined in t
his SDK. | 245 * Return an array containing the library URI's for the libraries defined in t
his SDK. |
| 237 * @return the library URI's for the libraries defined in this SDK | 246 * @return the library URI's for the libraries defined in this SDK |
| 238 */ | 247 */ |
| 239 List<String> get uris; | 248 List<String> get uris; |
| 240 /** | 249 /** |
| 241 * Return the source representing the library with the given {@code dart:} URI
, or {@code null} if | 250 * Return the source representing the library with the given {@code dart:} URI
, or {@code null} if |
| 242 * the given URI does not denote a library in this SDK. | 251 * the given URI does not denote a library in this SDK. |
| 243 * @param contentCache the content cache used to access the contents of the ma
pped source | 252 * @param contentCache the content cache used to access the contents of the ma
pped source |
| 244 * @param dartUri the URI of the library to be returned | 253 * @param dartUri the URI of the library to be returned |
| 245 * @return the source representing the specified library | 254 * @return the source representing the specified library |
| 246 */ | 255 */ |
| 247 Source mapDartUri(ContentCache contentCache, String dartUri); | 256 Source mapDartUri(ContentCache contentCache, String dartUri); |
| 248 } | 257 } |
| OLD | NEW |