Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(92)

Side by Side Diff: pkg/analyzer/lib/src/generated/sdk.dart

Issue 109853003: New analyzer snapshot. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fixes for review comments. Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « pkg/analyzer/lib/src/generated/scanner.dart ('k') | pkg/analyzer/lib/src/generated/sdk_io.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 '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 /** 9 /**
10 * Represents a single library in the SDK 10 * Represents a single library in the SDK
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 class SdkLibraryImpl implements SdkLibrary { 84 class SdkLibraryImpl implements SdkLibrary {
85 /** 85 /**
86 * The short name of the library. This is the name used after `dart:` in a URI . 86 * The short name of the library. This is the name used after `dart:` in a URI .
87 */ 87 */
88 String _shortName = null; 88 String _shortName = null;
89 89
90 /** 90 /**
91 * The path to the file defining the library. The path is relative to the `lib ` directory 91 * The path to the file defining the library. The path is relative to the `lib ` directory
92 * within the SDK. 92 * within the SDK.
93 */ 93 */
94 String _path = null; 94 String path = null;
95 95
96 /** 96 /**
97 * The name of the category containing the library. Unless otherwise specified in the libraries 97 * The name of the category containing the library. Unless otherwise specified in the libraries
98 * file all libraries are assumed to be shared between server and client. 98 * file all libraries are assumed to be shared between server and client.
99 */ 99 */
100 String _category = "Shared"; 100 String category = "Shared";
101 101
102 /** 102 /**
103 * A flag indicating whether the library is documented. 103 * A flag indicating whether the library is documented.
104 */ 104 */
105 bool _documented = true; 105 bool _documented = true;
106 106
107 /** 107 /**
108 * A flag indicating whether the library is an implementation library. 108 * A flag indicating whether the library is an implementation library.
109 */ 109 */
110 bool _implementation = false; 110 bool _implementation = false;
(...skipping 17 matching lines...) Expand all
128 128
129 /** 129 /**
130 * Initialize a newly created library to represent the library with the given name. 130 * Initialize a newly created library to represent the library with the given name.
131 * 131 *
132 * @param name the short name of the library 132 * @param name the short name of the library
133 */ 133 */
134 SdkLibraryImpl(String name) { 134 SdkLibraryImpl(String name) {
135 this._shortName = name; 135 this._shortName = name;
136 } 136 }
137 137
138 String get category => _category;
139
140 String get path => _path;
141
142 String get shortName => _shortName; 138 String get shortName => _shortName;
143 139
144 bool get isDart2JsLibrary => (_platforms & DART2JS_PLATFORM) != 0; 140 bool get isDart2JsLibrary => (_platforms & DART2JS_PLATFORM) != 0;
145 141
146 bool get isDocumented => _documented; 142 bool get isDocumented => _documented;
147 143
148 bool get isImplementation => _implementation; 144 bool get isImplementation => _implementation;
149 145
150 bool get isInternal => "Internal" == _category; 146 bool get isInternal => "Internal" == category;
151 147
152 /** 148 /**
153 * Return `true` if library can be used for both client and server 149 * Return `true` if library can be used for both client and server
154 */ 150 */
155 bool get isShared => _category == "Shared"; 151 bool get isShared => category == "Shared";
156 152
157 /** 153 /**
158 * Return `true` if this library can be run on the VM. 154 * Return `true` if this library can be run on the VM.
159 * 155 *
160 * @return `true` if this library can be run on the VM 156 * @return `true` if this library can be run on the VM
161 */ 157 */
162 bool get isVmLibrary => (_platforms & VM_PLATFORM) != 0; 158 bool get isVmLibrary => (_platforms & VM_PLATFORM) != 0;
163 159
164 /** 160 /**
165 * Set the name of the category containing the library to the given name.
166 *
167 * @param category the name of the category containing the library
168 */
169 void set category(String category) {
170 this._category = category;
171 }
172
173 /**
174 * Record that this library can be compiled to JavaScript by dart2js. 161 * Record that this library can be compiled to JavaScript by dart2js.
175 */ 162 */
176 void setDart2JsLibrary() { 163 void setDart2JsLibrary() {
177 _platforms |= DART2JS_PLATFORM; 164 _platforms |= DART2JS_PLATFORM;
178 } 165 }
179 166
180 /** 167 /**
181 * Set whether the library is documented to match the given value. 168 * Set whether the library is documented to match the given value.
182 * 169 *
183 * @param documented `true` if the library is documented 170 * @param documented `true` if the library is documented
184 */ 171 */
185 void set documented(bool documented) { 172 void set documented(bool documented) {
186 this._documented = documented; 173 this._documented = documented;
187 } 174 }
188 175
189 /** 176 /**
190 * Set whether the library is an implementation library to match the given val ue. 177 * Set whether the library is an implementation library to match the given val ue.
191 * 178 *
192 * @param implementation `true` if the library is an implementation library 179 * @param implementation `true` if the library is an implementation library
193 */ 180 */
194 void set implementation(bool implementation) { 181 void set implementation(bool implementation) {
195 this._implementation = implementation; 182 this._implementation = implementation;
196 } 183 }
197 184
198 /** 185 /**
199 * Set the path to the file defining the library to the given path. The path i s relative to the
200 * `lib` directory within the SDK.
201 *
202 * @param path the path to the file defining the library
203 */
204 void set path(String path) {
205 this._path = path;
206 }
207
208 /**
209 * Record that this library can be run on the VM. 186 * Record that this library can be run on the VM.
210 */ 187 */
211 void setVmLibrary() { 188 void setVmLibrary() {
212 _platforms |= VM_PLATFORM; 189 _platforms |= VM_PLATFORM;
213 } 190 }
214 } 191 }
215 192
216 /** 193 /**
217 * Instances of the class `LibraryMap` map Dart library URI's to the [SdkLibrary Impl 194 * Instances of the class `LibraryMap` map Dart library URI's to the [SdkLibrary Impl
218 ]. 195 ].
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
337 314
338 /** 315 /**
339 * Return the source representing the library with the given `dart:` URI, or ` null` if 316 * Return the source representing the library with the given `dart:` URI, or ` null` if
340 * the given URI does not denote a library in this SDK. 317 * the given URI does not denote a library in this SDK.
341 * 318 *
342 * @param dartUri the URI of the library to be returned 319 * @param dartUri the URI of the library to be returned
343 * @return the source representing the specified library 320 * @return the source representing the specified library
344 */ 321 */
345 Source mapDartUri(String dartUri); 322 Source mapDartUri(String dartUri);
346 } 323 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/generated/scanner.dart ('k') | pkg/analyzer/lib/src/generated/sdk_io.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698