public static function shouldNotDocument()

in src/api-gen/ScannedDefinitionFilters.php [88:111]


  public static function shouldNotDocument(ScannedDefinition $def): bool {
    return (
      (
        // non-namespaced name starts with _
        Str\starts_with($def->getName(), '_') && !($def is ScannedMethod)
      ) ||
      Str\contains($def->getName(), '\\_') // namespaced name starts with _
      ||
      Str\contains($def->getName(), 'WaitHandle') ||
      Str\contains($def->getName(), "\\Rx\\") ||
      ($def->getAttributes()['NoDoc'] ?? null) !== null ||
      self::isBlacklisted($def) ||
      (
        Str\contains($def->getFileName(), 'api-sources/hhvm/') &&
        self::isUndefinedFunction($def)
      ) ||
      (
        Str\starts_with($def->getName(), 'Lazy') &&
        Str\contains($def->getName(), 'Itera')
      ) ||
      $def is ScannedType ||
      $def is ScannedNewtype
    );
  }