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

Unified Diff: tools/line_doc_comments.dart

Issue 12316036: Merge IO v2 branch to bleeding edge (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebased to r18818 Created 7 years, 10 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 | « tests/standalone/standalone.status ('k') | utils/apidoc/apidoc.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 aa7627cc0d977cb5161253bafe60da3e50caa50b..a51d84d08dd6b4567d12026b6d83bb0bc531dbf9 100755
--- a/tools/line_doc_comments.dart
+++ b/tools/line_doc_comments.dart
@@ -22,11 +22,14 @@ main() {
}
var dir = new Directory(args[0]);
- var lister = dir.list(recursive: true);
- lister.onFile = (file) {
- if (path.extension(file) != '.dart') return;
- fixFile(file);
- };
+ dir.list(recursive: true).listen(
+ (entity) {
+ if (entity is File) {
+ var file = entity.name;
+ if (path.extension(file) != '.dart') return;
+ fixFile(file);
+ }
+ });
}
void fixFile(String path) {
« no previous file with comments | « tests/standalone/standalone.status ('k') | utils/apidoc/apidoc.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698