documentationComment property

  1. @override
CommentImpl? documentationComment
override

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;
}
void documentationComment=(CommentImpl? comment)
inherited

Implementation

set documentationComment(CommentImpl? comment) {
  _comment = _becomeParentOf(comment);
}