| 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 'java_core.dart'; | 4 import 'java_core.dart'; |
| 5 import 'java_engine.dart'; | 5 import 'java_engine.dart'; |
| 6 import 'source.dart' show ContentCache, Source, UriKind; | 6 import 'source.dart' show ContentCache, Source, UriKind; |
| 7 import 'engine.dart' show AnalysisContext; | 7 import 'engine.dart' show AnalysisContext; |
| 8 /** | 8 /** |
| 9 * Represents a single library in the SDK | 9 * Represents a single library in the SDK |
| 10 */ | 10 */ |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 /** | 25 /** |
| 26 * Return the short name of the library. This is the name used after `dart:` i
n a URI. | 26 * Return the short name of the library. This is the name used after `dart:` i
n a URI. |
| 27 * @return the short name of the library | 27 * @return the short name of the library |
| 28 */ | 28 */ |
| 29 String get shortName; | 29 String get shortName; |
| 30 | 30 |
| 31 /** | 31 /** |
| 32 * Return `true` if this library can be compiled to JavaScript by dart2js. | 32 * Return `true` if this library can be compiled to JavaScript by dart2js. |
| 33 * @return `true` if this library can be compiled to JavaScript by dart2js | 33 * @return `true` if this library can be compiled to JavaScript by dart2js |
| 34 */ | 34 */ |
| 35 bool isDart2JsLibrary(); | 35 bool get isDart2JsLibrary; |
| 36 | 36 |
| 37 /** | 37 /** |
| 38 * Return `true` if the library is documented. | 38 * Return `true` if the library is documented. |
| 39 * @return `true` if the library is documented | 39 * @return `true` if the library is documented |
| 40 */ | 40 */ |
| 41 bool isDocumented(); | 41 bool get isDocumented; |
| 42 | 42 |
| 43 /** | 43 /** |
| 44 * Return `true` if the library is an implementation library. | 44 * Return `true` if the library is an implementation library. |
| 45 * @return `true` if the library is an implementation library | 45 * @return `true` if the library is an implementation library |
| 46 */ | 46 */ |
| 47 bool isImplementation(); | 47 bool get isImplementation; |
| 48 | 48 |
| 49 /** | 49 /** |
| 50 * Return `true` if library is internal can be used only by other SDK librarie
s. | 50 * Return `true` if library is internal can be used only by other SDK librarie
s. |
| 51 * @return `true` if library is internal can be used only by other SDK librari
es | 51 * @return `true` if library is internal can be used only by other SDK librari
es |
| 52 */ | 52 */ |
| 53 bool isInternal(); | 53 bool get isInternal; |
| 54 | 54 |
| 55 /** | 55 /** |
| 56 * Return `true` if library can be used for both client and server. | 56 * Return `true` if library can be used for both client and server. |
| 57 * @return `true` if this library can be used for both client and server. | 57 * @return `true` if this library can be used for both client and server. |
| 58 */ | 58 */ |
| 59 bool isShared(); | 59 bool get isShared; |
| 60 | 60 |
| 61 /** | 61 /** |
| 62 * Return `true` if this library can be run on the VM. | 62 * Return `true` if this library can be run on the VM. |
| 63 * @return `true` if this library can be run on the VM | 63 * @return `true` if this library can be run on the VM |
| 64 */ | 64 */ |
| 65 bool isVmLibrary(); | 65 bool get isVmLibrary; |
| 66 } | 66 } |
| 67 /** | 67 /** |
| 68 * Instances of the class `SdkLibrary` represent the information known about a s
ingle library | 68 * Instances of the class `SdkLibrary` represent the information known about a s
ingle library |
| 69 * within the SDK. | 69 * within the SDK. |
| 70 * @coverage dart.engine.sdk | 70 * @coverage dart.engine.sdk |
| 71 */ | 71 */ |
| 72 class SdkLibraryImpl implements SdkLibrary { | 72 class SdkLibraryImpl implements SdkLibrary { |
| 73 | 73 |
| 74 /** | 74 /** |
| 75 * The short name of the library. This is the name used after `dart:` in a URI
. | 75 * The short name of the library. This is the name used after `dart:` in a URI
. |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 /** | 118 /** |
| 119 * Initialize a newly created library to represent the library with the given
name. | 119 * Initialize a newly created library to represent the library with the given
name. |
| 120 * @param name the short name of the library | 120 * @param name the short name of the library |
| 121 */ | 121 */ |
| 122 SdkLibraryImpl(String name) { | 122 SdkLibraryImpl(String name) { |
| 123 this._shortName = name; | 123 this._shortName = name; |
| 124 } | 124 } |
| 125 String get category => _category; | 125 String get category => _category; |
| 126 String get path => _path; | 126 String get path => _path; |
| 127 String get shortName => _shortName; | 127 String get shortName => _shortName; |
| 128 bool isDart2JsLibrary() => (_platforms & DART2JS_PLATFORM) != 0; | 128 bool get isDart2JsLibrary => (_platforms & DART2JS_PLATFORM) != 0; |
| 129 bool isDocumented() => _documented; | 129 bool get isDocumented => _documented; |
| 130 bool isImplementation() => _implementation; | 130 bool get isImplementation => _implementation; |
| 131 bool isInternal() => "Internal" == _category; | 131 bool get isInternal => "Internal" == _category; |
| 132 | 132 |
| 133 /** | 133 /** |
| 134 * Return `true` if library can be used for both client and server | 134 * Return `true` if library can be used for both client and server |
| 135 */ | 135 */ |
| 136 bool isShared() => _category == "Shared"; | 136 bool get isShared => _category == "Shared"; |
| 137 | 137 |
| 138 /** | 138 /** |
| 139 * Return `true` if this library can be run on the VM. | 139 * Return `true` if this library can be run on the VM. |
| 140 * @return `true` if this library can be run on the VM | 140 * @return `true` if this library can be run on the VM |
| 141 */ | 141 */ |
| 142 bool isVmLibrary() => (_platforms & VM_PLATFORM) != 0; | 142 bool get isVmLibrary => (_platforms & VM_PLATFORM) != 0; |
| 143 | 143 |
| 144 /** | 144 /** |
| 145 * Set the name of the category containing the library to the given name. | 145 * Set the name of the category containing the library to the given name. |
| 146 * @param category the name of the category containing the library | 146 * @param category the name of the category containing the library |
| 147 */ | 147 */ |
| 148 void set category(String category2) { | 148 void set category(String category2) { |
| 149 this._category = category2; | 149 this._category = category2; |
| 150 } | 150 } |
| 151 | 151 |
| 152 /** | 152 /** |
| (...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 297 | 297 |
| 298 /** | 298 /** |
| 299 * Return the source representing the library with the given `dart:` URI, or `
null` if | 299 * Return the source representing the library with the given `dart:` URI, or `
null` if |
| 300 * the given URI does not denote a library in this SDK. | 300 * the given URI does not denote a library in this SDK. |
| 301 * @param contentCache the content cache used to access the contents of the ma
pped source | 301 * @param contentCache the content cache used to access the contents of the ma
pped source |
| 302 * @param dartUri the URI of the library to be returned | 302 * @param dartUri the URI of the library to be returned |
| 303 * @return the source representing the specified library | 303 * @return the source representing the specified library |
| 304 */ | 304 */ |
| 305 Source mapDartUri(ContentCache contentCache, String dartUri); | 305 Source mapDartUri(ContentCache contentCache, String dartUri); |
| 306 } | 306 } |
| OLD | NEW |