final public function categoryOf()

in src/core/Node.hack [798:806]


  final public function categoryOf(string $c): bool {
    $categories = $this->__xhpCategoryDeclaration();
    if ($categories[$c] ?? null !== null) {
      return true;
    }
    // XHP parses the category string
    $c = \str_replace(varray[':', '-'], varray['__', '_'], $c);
    return ($categories[$c] ?? null) !== null;
  }