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

Unified Diff: tools/line_doc_comments.dart

Issue 180373003: [polymer] switch comment style (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 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
Index: tools/line_doc_comments.dart
diff --git a/tools/line_doc_comments.dart b/tools/line_doc_comments.dart
index 705065d8dd554900e9167df19f127bd1363af3cd..52723963ced1cb1a57172a25063e02e4dffdfaca 100755
--- a/tools/line_doc_comments.dart
+++ b/tools/line_doc_comments.dart
@@ -57,11 +57,13 @@ String fixContents(List<String> lines, String path) {
line = null;
} else {
var match = blockLine.firstMatch(line);
- var comment = match[1];
- if (comment != '') {
- line = '$indent/// $comment';
- } else {
- line = '$indent///';
+ if (match != null) {
+ var comment = match[1];
+ if (comment != '') {
+ line = '$indent/// $comment';
+ } else {
+ line = '$indent///';
+ }
}
}
} else {
« pkg/polymer/lib/src/build/script_compactor.dart ('K') | « pkg/polymer/test/build/utils_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698