in src/PageSections/FunctionishReturnValues.hack [41:61]
private static function getReturnValueInformation(
ScannedFunctionish $f,
DocBlock\ReturnInfo $docs,
): string {
$ret = '- ';
$types =
Vec\filter($docs['types'], $type ==> $type !== '\-' && $type !== '-');
$typehint = $f->getReturnType();
if ($types) {
$ret .= '`'.Str\join($types, '|').'`';
} else if ($typehint) {
$ret .=
'`'._Private\stringify_typehint($f->getNamespaceName(), $typehint).'`';
}
$text = $docs['text'];
if ($text !== null) {
$ret .= ' - '.$text;
}
return $ret;
}