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

Side by Side Diff: pkg/analyzer_experimental/lib/src/generated/sdk_io.dart

Issue 23080005: New analysis_experimental snapshot. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 4 months 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
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 library engine.sdk.io; 3 library engine.sdk.io;
4 import 'dart:io'; 4 import 'dart:io';
5 import 'java_core.dart'; 5 import 'java_core.dart';
6 import 'java_io.dart'; 6 import 'java_io.dart';
7 import 'java_engine.dart'; 7 import 'java_engine.dart';
8 import 'java_engine_io.dart'; 8 import 'java_engine_io.dart';
9 import 'source_io.dart'; 9 import 'source_io.dart';
10 import 'error.dart'; 10 import 'error.dart';
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 * The name of the directory within the SDK directory that contains the librar ies. 108 * The name of the directory within the SDK directory that contains the librar ies.
109 */ 109 */
110 static String _LIB_DIRECTORY_NAME = "lib"; 110 static String _LIB_DIRECTORY_NAME = "lib";
111 111
112 /** 112 /**
113 * The name of the libraries file. 113 * The name of the libraries file.
114 */ 114 */
115 static String _LIBRARIES_FILE = "libraries.dart"; 115 static String _LIBRARIES_FILE = "libraries.dart";
116 116
117 /** 117 /**
118 * The name of the pub executable on windows.
119 */
120 static String _PUB_EXECUTABLE_NAME_WIN = "pub.bat";
121
122 /**
123 * The name of the pub executable on non-windows operating systems.
124 */
125 static String _PUB_EXECUTABLE_NAME = "pub";
126
127 /**
118 * The name of the file within the SDK directory that contains the revision nu mber of the SDK. 128 * The name of the file within the SDK directory that contains the revision nu mber of the SDK.
119 */ 129 */
120 static String _REVISION_FILE_NAME = "revision"; 130 static String _REVISION_FILE_NAME = "revision";
121 131
122 /** 132 /**
123 * The name of the file containing the VM executable on the Windows operating system. 133 * The name of the file containing the VM executable on the Windows operating system.
124 */ 134 */
125 static String _VM_EXECUTABLE_NAME_WIN = "dart.exe"; 135 static String _VM_EXECUTABLE_NAME_WIN = "dart.exe";
126 136
127 /** 137 /**
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
246 } 256 }
247 return null; 257 return null;
248 } 258 }
249 259
250 /** 260 /**
251 * Return the directory within the SDK directory that contains the libraries. 261 * Return the directory within the SDK directory that contains the libraries.
252 * 262 *
253 * @return the directory that contains the libraries 263 * @return the directory that contains the libraries
254 */ 264 */
255 JavaFile get libraryDirectory => new JavaFile.relative(_sdkDirectory, _LIB_DIR ECTORY_NAME); 265 JavaFile get libraryDirectory => new JavaFile.relative(_sdkDirectory, _LIB_DIR ECTORY_NAME);
266
267 /**
268 * Return the file containing the Pub executable, or `null` if it does not exi st.
269 *
270 * @return the file containing the Pub executable
271 */
272 JavaFile get pubExecutable {
273 String pubBinaryName = OSUtilities.isWindows() ? _PUB_EXECUTABLE_NAME_WIN : _PUB_EXECUTABLE_NAME;
274 JavaFile file = new JavaFile.relative(new JavaFile.relative(_sdkDirectory, _ BIN_DIRECTORY_NAME), pubBinaryName);
275 return file.exists() ? file : null;
276 }
256 List<SdkLibrary> get sdkLibraries => _libraryMap.sdkLibraries; 277 List<SdkLibrary> get sdkLibraries => _libraryMap.sdkLibraries;
257 SdkLibrary getSdkLibrary(String dartUri) => _libraryMap.getLibrary(dartUri); 278 SdkLibrary getSdkLibrary(String dartUri) => _libraryMap.getLibrary(dartUri);
258 279
259 /** 280 /**
260 * Return the revision number of this SDK, or `"0"` if the revision number can not be 281 * Return the revision number of this SDK, or `"0"` if the revision number can not be
261 * discovered. 282 * discovered.
262 * 283 *
263 * @return the revision number of this SDK 284 * @return the revision number of this SDK
264 */ 285 */
265 String get sdkVersion { 286 String get sdkVersion {
(...skipping 21 matching lines...) Expand all
287 List<String> get uris => _libraryMap.uris; 308 List<String> get uris => _libraryMap.uris;
288 309
289 /** 310 /**
290 * Return the file containing the VM executable, or `null` if it does not exis t. 311 * Return the file containing the VM executable, or `null` if it does not exis t.
291 * 312 *
292 * @return the file containing the VM executable 313 * @return the file containing the VM executable
293 */ 314 */
294 JavaFile get vmExecutable { 315 JavaFile get vmExecutable {
295 { 316 {
296 if (_vmExecutable == null) { 317 if (_vmExecutable == null) {
297 JavaFile file = new JavaFile.relative(new JavaFile.relative(_sdkDirector y, _BIN_DIRECTORY_NAME), binaryName); 318 JavaFile file = new JavaFile.relative(new JavaFile.relative(_sdkDirector y, _BIN_DIRECTORY_NAME), vmBinaryName);
298 if (file.exists()) { 319 if (file.exists()) {
299 _vmExecutable = file; 320 _vmExecutable = file;
300 } 321 }
301 } 322 }
302 } 323 }
303 return _vmExecutable; 324 return _vmExecutable;
304 } 325 }
305 326
306 /** 327 /**
307 * Return `true` if this SDK includes documentation. 328 * Return `true` if this SDK includes documentation.
(...skipping 17 matching lines...) Expand all
325 } 346 }
326 347
327 /** 348 /**
328 * Ensure that the dart VM is executable. If it is not, make it executable and log that it was 349 * Ensure that the dart VM is executable. If it is not, make it executable and log that it was
329 * necessary for us to do so. 350 * necessary for us to do so.
330 */ 351 */
331 void ensureVmIsExecutable() { 352 void ensureVmIsExecutable() {
332 } 353 }
333 354
334 /** 355 /**
335 * Return the name of the file containing the VM executable.
336 *
337 * @return the name of the file containing the VM executable
338 */
339 String get binaryName {
340 if (OSUtilities.isWindows()) {
341 return _VM_EXECUTABLE_NAME_WIN;
342 } else {
343 return _VM_EXECUTABLE_NAME;
344 }
345 }
346
347 /**
348 * Return the name of the file containing the Dartium executable. 356 * Return the name of the file containing the Dartium executable.
349 * 357 *
350 * @return the name of the file containing the Dartium executable 358 * @return the name of the file containing the Dartium executable
351 */ 359 */
352 String get dartiumBinaryName { 360 String get dartiumBinaryName {
353 if (OSUtilities.isWindows()) { 361 if (OSUtilities.isWindows()) {
354 return _DARTIUM_EXECUTABLE_NAME_WIN; 362 return _DARTIUM_EXECUTABLE_NAME_WIN;
355 } else if (OSUtilities.isMac()) { 363 } else if (OSUtilities.isMac()) {
356 return _DARTIUM_EXECUTABLE_NAME_MAC; 364 return _DARTIUM_EXECUTABLE_NAME_MAC;
357 } else { 365 } else {
358 return _DARTIUM_EXECUTABLE_NAME_LINUX; 366 return _DARTIUM_EXECUTABLE_NAME_LINUX;
359 } 367 }
360 } 368 }
361 369
370 /**
371 * Return the name of the file containing the VM executable.
372 *
373 * @return the name of the file containing the VM executable
374 */
375 String get vmBinaryName {
376 if (OSUtilities.isWindows()) {
377 return _VM_EXECUTABLE_NAME_WIN;
378 } else {
379 return _VM_EXECUTABLE_NAME;
380 }
381 }
382
362 /** 383 /**
363 * Read all of the configuration files to initialize the library maps. 384 * Read all of the configuration files to initialize the library maps.
364 */ 385 */
365 void initializeLibraryMap() { 386 void initializeLibraryMap() {
366 try { 387 try {
367 JavaFile librariesFile = new JavaFile.relative(new JavaFile.relative(libra ryDirectory, _INTERNAL_DIR), _LIBRARIES_FILE); 388 JavaFile librariesFile = new JavaFile.relative(new JavaFile.relative(libra ryDirectory, _INTERNAL_DIR), _LIBRARIES_FILE);
368 String contents = librariesFile.readAsStringSync(); 389 String contents = librariesFile.readAsStringSync();
369 _libraryMap = new SdkLibrariesReader().readFrom(librariesFile, contents); 390 _libraryMap = new SdkLibrariesReader().readFrom(librariesFile, contents);
370 } catch (exception) { 391 } catch (exception) {
371 AnalysisEngine.instance.logger.logError3(exception); 392 AnalysisEngine.instance.logger.logError3(exception);
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
516 return null; 537 return null;
517 } 538 }
518 } 539 }
519 class AnalysisErrorListener_9 implements AnalysisErrorListener { 540 class AnalysisErrorListener_9 implements AnalysisErrorListener {
520 List<bool> foundError; 541 List<bool> foundError;
521 AnalysisErrorListener_9(this.foundError); 542 AnalysisErrorListener_9(this.foundError);
522 void onError(AnalysisError error) { 543 void onError(AnalysisError error) {
523 foundError[0] = true; 544 foundError[0] = true;
524 } 545 }
525 } 546 }
OLDNEW
« no previous file with comments | « pkg/analyzer_experimental/lib/src/generated/resolver.dart ('k') | pkg/analyzer_experimental/lib/src/generated/source.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698