private function getLinkPathForMethod()

in src/PageSections/InterfaceSynopsis.hack [179:194]


  private function getLinkPathForMethod(
    ScannedClassish $c,
    ScannedMethod $m,
  ): ?string {
    $pp = $this->context->getPathProvider();
    if ($c is ScannedClass) {
      return $pp->getPathForClassMethod($c->getName(), $m->getName());
    }
    if ($c is ScannedInterface) {
      return $pp->getPathForInterfaceMethod($c->getName(), $m->getName());
    }
    if ($c is ScannedTrait) {
      return $pp->getPathForTraitMethod($c->getName(), $m->getName());
    }
    invariant_violation("Don't know how to handle type %s", \get_class($c));
  }