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

Unified Diff: bin/devrun.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 | « no previous file | lib/src/codegen/html_codegen.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: bin/devrun.dart
diff --git a/bin/devrun.dart b/bin/devrun.dart
index 38a1318e0a2bc1f11bfe5dd8e9143c21c8f2c549..18e8456c5cc951698a2350ab7984218d76c29b4f 100755
--- a/bin/devrun.dart
+++ b/bin/devrun.dart
@@ -10,13 +10,12 @@ import 'dart:io';
import 'package:dev_compiler/src/compiler.dart' show validateOptions, compile;
import 'package:dev_compiler/src/options.dart';
-import 'package:dev_compiler/src/runner/runtime_utils.dart' show
- listOutputFiles, getMainModuleName;
+import 'package:dev_compiler/src/runner/runtime_utils.dart'
+ show listOutputFiles, getMainModuleName;
import 'package:dev_compiler/src/runner/v8_runner.dart' show V8Runner;
import 'package:path/path.dart';
-
void _showUsageAndExit() {
print('usage: dartdevrun [<options>] <file.dart>\n');
print('<file.dart> is a single Dart file to run.\n');
@@ -26,7 +25,9 @@ void _showUsageAndExit() {
}
main(List<String> args) async {
- args = []..add('--arrow-fn-bind-this')..addAll(args);
+ args = []
+ ..add('--arrow-fn-bind-this')
+ ..addAll(args);
CompilerOptions options = validateOptions(args, forceOutDir: true);
if (options == null || options.help) {
@@ -55,8 +56,8 @@ main(List<String> args) async {
}
/// Generates an HTML file that can be used to run the output with Chrome Dev.
-_writeHtmlRunner(CompilerOptions options, List<File> files,
- String startStatement) async {
+_writeHtmlRunner(
+ CompilerOptions options, List<File> files, String startStatement) async {
String outputDir = options.codegenOptions.outputDir;
String htmlOutput = join(outputDir, "run.html");
await new File(htmlOutput).writeAsString('''
@@ -67,7 +68,7 @@ _writeHtmlRunner(CompilerOptions options, List<File> files,
<script>$startStatement</script>
</body></html>
''');
-
+
stderr.writeln(
'Wrote $htmlOutput. It can be opened in Chrome Dev with the following flags:\n'
'--js-flags="--harmony-arrow-functions '
« no previous file with comments | « no previous file | lib/src/codegen/html_codegen.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698