public function getTagsByName()

in src/DocBlock/DocBlock.hack [168:185]


  public function getTagsByName(string $name): vec<string> {
    return $this->tags
      |> Vec\filter(
        $$,
        $tag ==> {
          list($key, $value) = $tag;
          if ($key !== $name) {
            return false;
          }
          if ($value === null) {
            return false;
          }
          return true;
        },
      )
      |> Vec\map($$, $x ==> $x[1])
      |> Vec\filter_nulls($$);
  }