private function getMethodList()

in src/PageSections/InterfaceSynopsis.hack [112:127]


  private function getMethodList(
    string $header,
    vec<(ScannedClassish, ScannedMethod)> $methods,
  ): ?string {
    if (C\is_empty($methods)) {
      return null;
    }
    return $methods
      |> Vec\sort_by(
        $$,
        $cm ==> ($cm[1]->isStatic() ? 'a' : 'b').$cm[1]->getName(),
      )
      |> Vec\map($$, $cm ==> $this->getMethodListItem($cm[0], $cm[1]))
      |> Str\join($$, "\n")
      |> $header."\n\n".$$."\n";
  }