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

Unified Diff: pkg/dartdoc/lib/src/dartdoc/comment_map.dart

Issue 11238035: Make isEmpty a getter. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Update status file with co19 issue number. Created 8 years, 2 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 | « pkg/dartdoc/lib/src/client/search.dart ('k') | pkg/dartdoc/lib/src/markdown/html_renderer.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/dartdoc/lib/src/dartdoc/comment_map.dart
diff --git a/pkg/dartdoc/lib/src/dartdoc/comment_map.dart b/pkg/dartdoc/lib/src/dartdoc/comment_map.dart
index 87f9940a2aad0ffccbf969735d4a8f83cabeb841..f4ddf5ff4a4f890643665bd75321be6fc7dde1c6 100644
--- a/pkg/dartdoc/lib/src/dartdoc/comment_map.dart
+++ b/pkg/dartdoc/lib/src/dartdoc/comment_map.dart
@@ -33,7 +33,7 @@ class CommentMap {
_ensureFileParsed(span.source);
String comment = _comments[span.source.uri.toString()][span.start];
- assert(comment == null || !comment.trim().isEmpty());
+ assert(comment == null || !comment.trim().isEmpty);
return comment;
}
@@ -46,7 +46,7 @@ class CommentMap {
String findLibrary(Source source) {
_ensureFileParsed(source);
String comment = _libraryComments[source.uri.toString()];
- assert(comment == null || !comment.trim().isEmpty());
+ assert(comment == null || !comment.trim().isEmpty);
return comment;
}
@@ -87,7 +87,7 @@ class CommentMap {
lastComment = null;
}
} else if (lastComment != null) {
- if (!lastComment.trim().isEmpty()) {
+ if (!lastComment.trim().isEmpty) {
// We haven't attached the last doc comment to something yet, so stick
// it to this token.
comments[token.charOffset] = lastComment;
« no previous file with comments | « pkg/dartdoc/lib/src/client/search.dart ('k') | pkg/dartdoc/lib/src/markdown/html_renderer.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698