| 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;
|
|
|