getDocumentationComments function
Gets an iterable over all of the blocks of documentation comments from an iterable over the SourceElements involved.
Implementation
Iterable<List<SourceLine>> getDocumentationComments(
Iterable<SourceElement> elements) {
return elements
.where((SourceElement element) => element.comment.isNotEmpty)
.map<List<SourceLine>>((SourceElement element) => element.comment);
}