public function getEnumValues()

in src/Reflection/ReflectionXHPAttribute.hack [84:99]


  public function getEnumValues(): keyset<string> {
    $t = $this->getValueType();
    invariant(
      $t  === XHPAttributeType::TYPE_ENUM,
      'Tried to get enum values for attribute %s of type %s - needed '.'ENUM',
      $this->getName(),
      XHPAttributeType::getNames()[$t],
    );
    $v = $this->extraType;
    invariant(
      $v is Container<_>,
      'Class name for attribute %s is not an array',
      $this->getName(),
    );
    return keyset(/* HH_FIXME[4110] not limited to arraykey */ $v);
  }