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

Unified Diff: pkg/analyzer_experimental/bin/formatter.dart

Issue 23461044: Fix to NOT traverse linked directories when formatting (dartbug.com/13187). (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 3 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer_experimental/bin/formatter.dart
===================================================================
--- pkg/analyzer_experimental/bin/formatter.dart (revision 27343)
+++ pkg/analyzer_experimental/bin/formatter.dart (working copy)
@@ -17,6 +17,7 @@
final argParser = _initArgParser();
bool overwriteFileContents;
+const followLinks = false;
main() {
var options = argParser.parse(new Options().arguments);
@@ -51,8 +52,8 @@
}
}
-_formatDirectory(dir) =>
- dir.listSync().forEach((resource) => _formatResource(resource));
+_formatDirectory(dir) => dir.listSync(followLinks: followLinks)
+ .forEach((resource) => _formatResource(resource));
_formatFile(file) {
if (_isDartFile(file)) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698