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

Unified Diff: lib/src/runner/runtime_utils.dart

Issue 1268813003: format with dart_style 0.2.0 (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 5 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 | « lib/src/codegen/html_codegen.dart ('k') | lib/src/runner/v8_runner.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/runner/runtime_utils.dart
diff --git a/lib/src/runner/runtime_utils.dart b/lib/src/runner/runtime_utils.dart
index 29cbd3e28fff16aa4014bd04af404adec019d18b..1b126624a98f77d1110ddc1ee7c10925347f3429 100644
--- a/lib/src/runner/runtime_utils.dart
+++ b/lib/src/runner/runtime_utils.dart
@@ -26,7 +26,8 @@ const _ALIASED_RUNTIME_FILES = const {
/// returns null.
String getRuntimeFileAlias(CompilerOptions options, File file) =>
file.absolute.path.startsWith(_getRuntimeDir(options).absolute.path)
- ? _ALIASED_RUNTIME_FILES[basename(file.path)] : null;
+ ? _ALIASED_RUNTIME_FILES[basename(file.path)]
+ : null;
Directory _getRuntimeDir(CompilerOptions options) => new Directory(
join(options.codegenOptions.outputDir, 'dev_compiler', 'runtime'));
@@ -44,11 +45,11 @@ Future<List<File>> listOutputFiles(CompilerOptions options) async {
int i = defaultRuntimeFiles.indexOf(basename(file.path));
return i < 0 ? maxIndex : i;
}
- return files..sort((File a, File b) {
- int pa = getPriorityIndex(a),
- pb = getPriorityIndex(b);
- return pa != pb ? (pa - pb) : a.path.compareTo(b.path);
- });
+ return files
+ ..sort((File a, File b) {
+ int pa = getPriorityIndex(a), pb = getPriorityIndex(b);
+ return pa != pb ? (pa - pb) : a.path.compareTo(b.path);
+ });
}
/// TODO(ochafik): Split / reuse [AbstractCompiler.getModuleName].
« no previous file with comments | « lib/src/codegen/html_codegen.dart ('k') | lib/src/runner/v8_runner.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698