| Index: sdk/lib/_internal/dartdoc/lib/src/dartdoc/comment_map.dart
|
| diff --git a/sdk/lib/_internal/dartdoc/lib/src/dartdoc/comment_map.dart b/sdk/lib/_internal/dartdoc/lib/src/dartdoc/comment_map.dart
|
| index 14f17bd4bb5abbeece49a899262146142a899903..7c8bd59ae295269b9bdddc463ae77a6ed281d78a 100644
|
| --- a/sdk/lib/_internal/dartdoc/lib/src/dartdoc/comment_map.dart
|
| +++ b/sdk/lib/_internal/dartdoc/lib/src/dartdoc/comment_map.dart
|
| @@ -81,13 +81,10 @@ class CommentMap {
|
| lastComment = '$lastComment\n$line';
|
| }
|
| }
|
| - } else if (token.kind == dart2js.HASH_TOKEN) {
|
| + } else if (token.stringValue == 'library' && lastComment != null) {
|
| // Look for `library` to find the library comment.
|
| - final next = token.next;
|
| - if ((lastComment != null) && (next.stringValue == 'library')) {
|
| - _libraryComments[source.sourceUri.toString()] = lastComment;
|
| - lastComment = null;
|
| - }
|
| + _libraryComments[source.sourceUri.toString()] = lastComment;
|
| + lastComment = null;
|
| } else if (lastComment != null) {
|
| if (!lastComment.trim().isEmpty) {
|
| // We haven't attached the last doc comment to something yet, so stick
|
|
|