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

Unified Diff: samples/build_dart/build.dart

Issue 2828603002: Format samples and samples-dev directories. (Closed)
Patch Set: Created 3 years, 8 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
Index: samples/build_dart/build.dart
diff --git a/samples/build_dart/build.dart b/samples/build_dart/build.dart
index d2def22770ef5dd4007ccb3b1db41fa96084c041..7058e70ed295571454023b607fab6e7d8a2ec0c6 100644
--- a/samples/build_dart/build.dart
+++ b/samples/build_dart/build.dart
@@ -42,14 +42,14 @@ void main(List<String> arguments) {
*/
void processArgs(List<String> arguments) {
var parser = new ArgParser();
- parser.addOption("changed", help: "the file has changed since the last build",
- allowMultiple: true);
- parser.addOption("removed", help: "the file was removed since the last build",
- allowMultiple: true);
+ parser.addOption("changed",
+ help: "the file has changed since the last build", allowMultiple: true);
+ parser.addOption("removed",
+ help: "the file was removed since the last build", allowMultiple: true);
parser.addFlag("clean", negatable: false, help: "remove any build artifacts");
parser.addFlag("full", negatable: false, help: "perform a full build");
parser.addFlag("machine",
- negatable: false, help: "produce warnings in a machine parseable format");
+ negatable: false, help: "produce warnings in a machine parseable format");
parser.addFlag("help", negatable: false, help: "display this help and exit");
var args = parser.parse(arguments);
@@ -85,11 +85,10 @@ void handleFullBuild() {
var files = <String>[];
Directory.current.list(recursive: true).listen((entity) {
- if (entity is File) {
- files.add((entity as File).resolveSymbolicLinksSync());
- }
- },
- onDone: () => handleChangedFiles(files));
+ if (entity is File) {
+ files.add((entity as File).resolveSymbolicLinksSync());
+ }
+ }, onDone: () => handleChangedFiles(files));
}
/**
@@ -102,9 +101,7 @@ void handleChangedFiles(List<String> files) {
/**
* Process the given list of removed files.
*/
-void handleRemovedFiles(List<String> files) {
-
-}
+void handleRemovedFiles(List<String> files) {}
/**
* Convert a .foo file to a .foobar file.
« no previous file with comments | « samples-dev/swarm/test/swarm_ui_lib/view/view_test.dart ('k') | samples/build_dart/test/build_dart_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698