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

Unified Diff: bin/edit_files.dart

Issue 1266483003: format with dart_style 0.2.0-rc.3 (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/runtime/messages_widget.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: bin/edit_files.dart
diff --git a/bin/edit_files.dart b/bin/edit_files.dart
index c033a9e278fd9dabfcd2d1b2db7622e14010884c..00f251263f38386652f2fd3efab6282d7512012d 100644
--- a/bin/edit_files.dart
+++ b/bin/edit_files.dart
@@ -45,8 +45,10 @@ final ArgParser argParser = new ArgParser()
..addFlag('use-multi-package',
help: 'Whether to use the multi-package resolver for "package:" imports',
defaultsTo: false)
- ..addOption('package-paths', help: 'if using the multi-package resolver, '
- 'the list of directories where to look for packages.', defaultsTo: '')
+ ..addOption('package-paths',
+ help: 'if using the multi-package resolver, '
+ 'the list of directories where to look for packages.',
+ defaultsTo: '')
..addFlag('help', abbr: 'h', help: 'Display this message');
void _showUsageAndExit() {
@@ -72,9 +74,10 @@ class EditFileSummaryVisitor extends RecursiveSummaryVisitor {
this.checkoutFilesArg, this.includePattern, this.excludePattern);
TextEditTransaction getEdits(String name) => _files.putIfAbsent(name, () {
- var fileContents = new File(name).readAsStringSync();
- return new TextEditTransaction(fileContents, new SourceFile(fileContents));
- });
+ var fileContents = new File(name).readAsStringSync();
+ return new TextEditTransaction(
+ fileContents, new SourceFile(fileContents));
+ });
/// Find the corresponding [Source] for [uri].
Source findSource(Uri uri) {
@@ -153,9 +156,13 @@ void main(List<String> argv) {
var context =
createAnalysisContextWithSources(new StrongModeOptions(), options);
- var visitor = new EditFileSummaryVisitor(context, args['level'],
- args['checkout-files-executable'], args['checkout-files-arg'],
- includePattern, excludePattern);
+ var visitor = new EditFileSummaryVisitor(
+ context,
+ args['level'],
+ args['checkout-files-executable'],
+ args['checkout-files-arg'],
+ includePattern,
+ excludePattern);
summary.accept(visitor);
visitor.build();
}
« no previous file with comments | « no previous file | lib/runtime/messages_widget.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698