in src/PageSections/InterfaceSynopsis.hack [165:177]
private function getLinkPathForClassish(ScannedClassish $c): ?string {
$pp = $this->context->getPathProvider();
if ($c is ScannedClass) {
return $pp->getPathForClass($c->getName());
}
if ($c is ScannedInterface) {
return $pp->getPathForInterface($c->getName());
}
if ($c is ScannedTrait) {
return $pp->getPathForTrait($c->getName());
}
invariant_violation("Don't know how to handle type %s", \get_class($c));
}