EnumField documentationFrom

Returns the ModelElement from which we will get documentation.

This getter will walk up the inheritance hierarchy to find docs, if the current class doesn't have docs for this element.

Source

@override
EnumField get documentationFrom {
  if (name == 'values' && name == 'index') return this;
  return super.documentationFrom;
}