in src/api-gen/ScannedDefinitionFilters.php [113:138]
private static function isUndefinedFunction(ScannedDefinition $def): bool {
if (!$def is ScannedFunction) {
return false;
}
if (self::isHHSpecific($def)) {
return false;
}
$path = $def->getFileName();
if (
!(
Str\starts_with($path, BuildPaths::HHVM_TREE) &&
Str\ends_with($path, '.hhi')
)
) {
return false;
}
$name = $def->getName();
if (
\function_exists($name, /* autoload = */ false) ||
\function_exists("HH\\".$name, /* autoload = */ false)
) {
return false;
}
Log::w("\nUndefined function: ".$def->getName());
return true;
}