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

Unified Diff: pkg/analyzer/lib/src/generated/sdk_io.dart

Issue 975453004: Reformat (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/analyzer/lib/src/generated/scanner.dart ('k') | pkg/analyzer/lib/src/generated/source.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/src/generated/sdk_io.dart
diff --git a/pkg/analyzer/lib/src/generated/sdk_io.dart b/pkg/analyzer/lib/src/generated/sdk_io.dart
index cbbb2bb840c4c4d10eb07ed099c29fdf1e9494ba..2544ebbd6bd868ab8e04ec3fdd824bda32241a60 100644
--- a/pkg/analyzer/lib/src/generated/sdk_io.dart
+++ b/pkg/analyzer/lib/src/generated/sdk_io.dart
@@ -267,12 +267,11 @@ class DirectoryBasedDartSdk implements DartSdk {
*/
JavaFile get dart2JsExecutable {
if (_dart2jsExecutable == null) {
- _dart2jsExecutable = _verifyExecutable(
- new JavaFile.relative(
- new JavaFile.relative(_sdkDirectory, _BIN_DIRECTORY_NAME),
- OSUtilities.isWindows() ?
- _DART2JS_EXECUTABLE_NAME_WIN :
- _DART2JS_EXECUTABLE_NAME));
+ _dart2jsExecutable = _verifyExecutable(new JavaFile.relative(
+ new JavaFile.relative(_sdkDirectory, _BIN_DIRECTORY_NAME),
+ OSUtilities.isWindows()
+ ? _DART2JS_EXECUTABLE_NAME_WIN
+ : _DART2JS_EXECUTABLE_NAME));
}
return _dart2jsExecutable;
}
@@ -284,12 +283,11 @@ class DirectoryBasedDartSdk implements DartSdk {
*/
JavaFile get dartFmtExecutable {
if (_dartFmtExecutable == null) {
- _dartFmtExecutable = _verifyExecutable(
- new JavaFile.relative(
- new JavaFile.relative(_sdkDirectory, _BIN_DIRECTORY_NAME),
- OSUtilities.isWindows() ?
- _DARTFMT_EXECUTABLE_NAME_WIN :
- _DARTFMT_EXECUTABLE_NAME));
+ _dartFmtExecutable = _verifyExecutable(new JavaFile.relative(
+ new JavaFile.relative(_sdkDirectory, _BIN_DIRECTORY_NAME),
+ OSUtilities.isWindows()
+ ? _DARTFMT_EXECUTABLE_NAME_WIN
+ : _DARTFMT_EXECUTABLE_NAME));
}
return _dartFmtExecutable;
}
@@ -375,10 +373,9 @@ class DirectoryBasedDartSdk implements DartSdk {
*/
JavaFile get pubExecutable {
if (_pubExecutable == null) {
- _pubExecutable = _verifyExecutable(
- new JavaFile.relative(
- new JavaFile.relative(_sdkDirectory, _BIN_DIRECTORY_NAME),
- OSUtilities.isWindows() ? _PUB_EXECUTABLE_NAME_WIN : _PUB_EXECUTABLE_NAME));
+ _pubExecutable = _verifyExecutable(new JavaFile.relative(
+ new JavaFile.relative(_sdkDirectory, _BIN_DIRECTORY_NAME), OSUtilities
+ .isWindows() ? _PUB_EXECUTABLE_NAME_WIN : _PUB_EXECUTABLE_NAME));
}
return _pubExecutable;
}
@@ -438,10 +435,9 @@ class DirectoryBasedDartSdk implements DartSdk {
*/
JavaFile get vmExecutable {
if (_vmExecutable == null) {
- _vmExecutable = _verifyExecutable(
- new JavaFile.relative(
- new JavaFile.relative(_sdkDirectory, _BIN_DIRECTORY_NAME),
- vmBinaryName));
+ _vmExecutable = _verifyExecutable(new JavaFile.relative(
+ new JavaFile.relative(_sdkDirectory, _BIN_DIRECTORY_NAME),
+ vmBinaryName));
}
return _vmExecutable;
}
@@ -532,8 +528,8 @@ class DirectoryBasedDartSdk implements DartSdk {
_LIBRARIES_FILE);
try {
String contents = librariesFile.readAsStringSync();
- return new SdkLibrariesReader(
- useDart2jsPaths).readFromFile(librariesFile, contents);
+ return new SdkLibrariesReader(useDart2jsPaths).readFromFile(
+ librariesFile, contents);
} catch (exception, stackTrace) {
AnalysisEngine.instance.logger.logError(
"Could not initialize the library map from ${librariesFile.getAbsolutePath()}",
@@ -637,9 +633,7 @@ class SdkLibrariesReader {
LibraryMap readFromSource(Source source, String libraryFileContents) {
BooleanErrorListener errorListener = new BooleanErrorListener();
Scanner scanner = new Scanner(
- source,
- new CharSequenceReader(libraryFileContents),
- errorListener);
+ source, new CharSequenceReader(libraryFileContents), errorListener);
Parser parser = new Parser(source, errorListener);
CompilationUnit unit = parser.parseCompilationUnit(scanner.tokenize());
SdkLibrariesReader_LibraryBuilder libraryBuilder =
« no previous file with comments | « pkg/analyzer/lib/src/generated/scanner.dart ('k') | pkg/analyzer/lib/src/generated/source.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698