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

Unified Diff: tools/line_doc_comments.dart

Issue 2827793002: Format all files under tools and utils directory. (Closed)
Patch Set: Format all files under tools and utils directory. 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
« no previous file with comments | « tools/gardening/lib/src/shard_data.dart ('k') | tools/status_clean.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/line_doc_comments.dart
diff --git a/tools/line_doc_comments.dart b/tools/line_doc_comments.dart
index 52723963ced1cb1a57172a25063e02e4dffdfaca..1e6917fd0c0ede1cb0b0763efc106712ca8af6f7 100755
--- a/tools/line_doc_comments.dart
+++ b/tools/line_doc_comments.dart
@@ -2,6 +2,7 @@
/// Converts block-style Doc comments in Dart code to line style.
library line_doc_comments;
+
import 'dart:io';
import '../pkg/path/lib/path.dart' as path;
@@ -21,14 +22,13 @@ main(List<String> args) {
}
var dir = new Directory(args[0]);
- dir.list(recursive: true, followLinks: false).listen(
- (entity) {
- if (entity is File) {
- var file = entity.path;
- if (path.extension(file) != '.dart') return;
- fixFile(file);
- }
- });
+ dir.list(recursive: true, followLinks: false).listen((entity) {
+ if (entity is File) {
+ var file = entity.path;
+ if (path.extension(file) != '.dart') return;
+ fixFile(file);
+ }
+ });
}
void fixFile(String path) {
« no previous file with comments | « tools/gardening/lib/src/shard_data.dart ('k') | tools/status_clean.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698