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

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

Issue 1001403002: Remove the old formatter from analyzer. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 9 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 // 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.io; 8 library engine.sdk.io;
9 9
10 import 'dart:io'; 10 import 'dart:io';
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 * The name of the dart2js executable on non-windows operating systems. 60 * The name of the dart2js executable on non-windows operating systems.
61 */ 61 */
62 static String _DART2JS_EXECUTABLE_NAME = "dart2js"; 62 static String _DART2JS_EXECUTABLE_NAME = "dart2js";
63 63
64 /** 64 /**
65 * The name of the file containing the dart2js executable on Windows. 65 * The name of the file containing the dart2js executable on Windows.
66 */ 66 */
67 static String _DART2JS_EXECUTABLE_NAME_WIN = "dart2js.bat"; 67 static String _DART2JS_EXECUTABLE_NAME_WIN = "dart2js.bat";
68 68
69 /** 69 /**
70 * The name of the dart formatter executable on non-windows operating systems.
71 */
72 static String _DARTFMT_EXECUTABLE_NAME = "dartfmt";
73
74 /**
75 * The name of the dart formatter executable on windows operating systems.
76 */
77 static String _DARTFMT_EXECUTABLE_NAME_WIN = "dartfmt.bat";
78
79 /**
80 * The name of the file containing the Dartium executable on Linux. 70 * The name of the file containing the Dartium executable on Linux.
81 */ 71 */
82 static String _DARTIUM_EXECUTABLE_NAME_LINUX = "chrome"; 72 static String _DARTIUM_EXECUTABLE_NAME_LINUX = "chrome";
83 73
84 /** 74 /**
85 * The name of the file containing the Dartium executable on Macintosh. 75 * The name of the file containing the Dartium executable on Macintosh.
86 */ 76 */
87 static String _DARTIUM_EXECUTABLE_NAME_MAC = 77 static String _DARTIUM_EXECUTABLE_NAME_MAC =
88 "Chromium.app/Contents/MacOS/Chromium"; 78 "Chromium.app/Contents/MacOS/Chromium";
89 79
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
269 _dart2jsExecutable = _verifyExecutable(new JavaFile.relative( 259 _dart2jsExecutable = _verifyExecutable(new JavaFile.relative(
270 new JavaFile.relative(_sdkDirectory, _BIN_DIRECTORY_NAME), 260 new JavaFile.relative(_sdkDirectory, _BIN_DIRECTORY_NAME),
271 OSUtilities.isWindows() 261 OSUtilities.isWindows()
272 ? _DART2JS_EXECUTABLE_NAME_WIN 262 ? _DART2JS_EXECUTABLE_NAME_WIN
273 : _DART2JS_EXECUTABLE_NAME)); 263 : _DART2JS_EXECUTABLE_NAME));
274 } 264 }
275 return _dart2jsExecutable; 265 return _dart2jsExecutable;
276 } 266 }
277 267
278 /** 268 /**
279 * Return the file containing the dart formatter executable, or `null` if it
280 * does not exist.
281 */
282 JavaFile get dartFmtExecutable {
283 if (_dartFmtExecutable == null) {
284 _dartFmtExecutable = _verifyExecutable(new JavaFile.relative(
285 new JavaFile.relative(_sdkDirectory, _BIN_DIRECTORY_NAME),
286 OSUtilities.isWindows()
287 ? _DARTFMT_EXECUTABLE_NAME_WIN
288 : _DARTFMT_EXECUTABLE_NAME));
289 }
290 return _dartFmtExecutable;
291 }
292
293 /**
294 * Return the name of the file containing the Dartium executable. 269 * Return the name of the file containing the Dartium executable.
295 */ 270 */
296 String get dartiumBinaryName { 271 String get dartiumBinaryName {
297 if (OSUtilities.isWindows()) { 272 if (OSUtilities.isWindows()) {
298 return _DARTIUM_EXECUTABLE_NAME_WIN; 273 return _DARTIUM_EXECUTABLE_NAME_WIN;
299 } else if (OSUtilities.isMac()) { 274 } else if (OSUtilities.isMac()) {
300 return _DARTIUM_EXECUTABLE_NAME_MAC; 275 return _DARTIUM_EXECUTABLE_NAME_MAC;
301 } else { 276 } else {
302 return _DARTIUM_EXECUTABLE_NAME_LINUX; 277 return _DARTIUM_EXECUTABLE_NAME_LINUX;
303 } 278 }
(...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after
593 SdkLibrariesReader_LibraryBuilder libraryBuilder = 568 SdkLibrariesReader_LibraryBuilder libraryBuilder =
594 new SdkLibrariesReader_LibraryBuilder(_useDart2jsPaths); 569 new SdkLibrariesReader_LibraryBuilder(_useDart2jsPaths);
595 // If any syntactic errors were found then don't try to visit the AST 570 // If any syntactic errors were found then don't try to visit the AST
596 // structure. 571 // structure.
597 if (!errorListener.errorReported) { 572 if (!errorListener.errorReported) {
598 unit.accept(libraryBuilder); 573 unit.accept(libraryBuilder);
599 } 574 }
600 return libraryBuilder.librariesMap; 575 return libraryBuilder.librariesMap;
601 } 576 }
602 } 577 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698