documentationComment property
This overridden implementation of documentationComment looks in the grandparent node for Dartdoc comments if no documentation is specifically available on the node.
Implementation
@override
CommentImpl? get documentationComment {
var comment = super.documentationComment;
if (comment == null) {
var node = parent?.parent;
if (node is AnnotatedNodeImpl) {
return node.documentationComment;
}
}
return comment;
}
Implementation
set documentationComment(CommentImpl? comment) {
_comment = _becomeParentOf(comment);
}