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

Side by Side Diff: tools/line_doc_comments.dart

Issue 12316056: Move pkg/path to pkg/pathos. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « tools/create_sdk.py ('k') | utils/apidoc/apidoc.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/env dart 1 #!/usr/bin/env dart
2 2
3 /// Converts block-style Doc comments in Dart code to line style. 3 /// Converts block-style Doc comments in Dart code to line style.
4 library line_doc_comments; 4 library line_doc_comments;
5 import 'dart:io'; 5 import 'dart:io';
6 6
7 import '../pkg/path/lib/path.dart' as path; 7 import '../pkg/pathos/lib/path.dart' as path;
8 8
9 final oneLineBlock = new RegExp(r'^(\s*)/\*\*\s?(.*)\*/\s*$'); 9 final oneLineBlock = new RegExp(r'^(\s*)/\*\*\s?(.*)\*/\s*$');
10 final startBlock = new RegExp(r'^(\s*)/\*\*(.*)$'); 10 final startBlock = new RegExp(r'^(\s*)/\*\*(.*)$');
11 final blockLine = new RegExp(r'^\s*\*\s?(.*)$'); 11 final blockLine = new RegExp(r'^\s*\*\s?(.*)$');
12 final endBlock = new RegExp(r'^\s*\*/\s*$'); 12 final endBlock = new RegExp(r'^\s*\*/\s*$');
13 13
14 main() { 14 main() {
15 var args = new Options().arguments; 15 var args = new Options().arguments;
16 if (args.length != 1) { 16 if (args.length != 1) {
17 print('Converts "/**"-style block doc comments in a directory '); 17 print('Converts "/**"-style block doc comments in a directory ');
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 } 81 }
82 } 82 }
83 } 83 }
84 } 84 }
85 85
86 if (line != null) buffer.add('$line\n'); 86 if (line != null) buffer.add('$line\n');
87 } 87 }
88 88
89 return buffer.toString(); 89 return buffer.toString();
90 } 90 }
OLDNEW
« no previous file with comments | « tools/create_sdk.py ('k') | utils/apidoc/apidoc.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698