documentationFrom property

List<ModelElement> documentationFrom
override

Implementation

@override
List<ModelElement> get documentationFrom {
  if (_documentationFrom == null) {
    _documentationFrom = [];
    if (hasPublicGetter) {
      _documentationFrom.addAll(getter.documentationFrom);
    } else if (hasPublicSetter) {
      _documentationFrom.addAll(setter.documentationFrom);
    }
    if (_documentationFrom.isEmpty ||
        _documentationFrom.every((e) => e.documentationComment == '')) {
      _documentationFrom = computeDocumentationFrom;
    }
  }
  return _documentationFrom;
}