in src/HHClientFallbackHandler.hack [147:166]
public function handleFailedType(string $name): void {
$file = $this->lookupPath('class', $name);
if ($file === null) {
if (Str\slice($name, 0, 4) === 'xhp_') {
$xhp_name = ':'.
Str\replace_every(Str\slice($name, 4), dict['__' => ':', '_' => '-']);
$file = $this->lookupPath('class', $xhp_name);
}
if ($file === null) {
$file = $this->lookupPath('typedef', $name);
}
}
if ($file === null) {
return;
}
$this->requireFile($file);
}