Lines Matching refs:fileInfo

47         $fileInfo = processStubFile($pathName, $context);
48 if ($fileInfo) {
49 $fileInfos[] = $fileInfo;
75 if (!$fileInfo = $context->parsedFiles[$stubFile] ?? null) {
77 $fileInfo = parseStubFile($stubCode ?? file_get_contents($stubFile));
78 $context->parsedFiles[$stubFile] = $fileInfo;
80 foreach ($fileInfo->dependencies as $dependency) {
96 $constInfos = $fileInfo->getAllConstInfos();
101 return $fileInfo;
106 $fileInfo,
114 …if ($fileInfo->generateLegacyArginfoForPhpVersionId !== null && $fileInfo->generateLegacyArginfoFo…
115 $legacyFileInfo = clone $fileInfo;
138 return $fileInfo;
3627 function handleStatements(FileInfo $fileInfo, array $stmts, PrettyPrinterAbstract $prettyPrinter) { argument
3635 handleStatements($fileInfo, $stmt->stmts, $prettyPrinter);
3643 $fileInfo->constInfos[] = parseConstLike(
3650 $fileInfo->generateLegacyArginfoForPhpVersionId
3657 $fileInfo->funcInfos[] = parseFunctionLike(
3664 $fileInfo->isUndocumentable
3693 $fileInfo->generateLegacyArginfoForPhpVersionId
3708 $fileInfo->generateLegacyArginfoForPhpVersionId
3722 $fileInfo->isUndocumentable
3732 $fileInfo->classInfos[] = parseClass(
3733 …rtyInfos, $methodInfos, $enumCaseInfos, $cond, $fileInfo->generateLegacyArginfoForPhpVersionId, $f…
3741 …$fileInfo->dependencies[] = (string)EvaluatedValue::createFromExpression($expr->expr, null, null, …
3764 $fileInfo = new FileInfo;
3770 $fileInfo->generateFunctionEntries = true;
3771 $fileInfo->declarationPrefix = $tag->value ? $tag->value . " " : "";
3780 …$fileInfo->generateLegacyArginfoForPhpVersionId = $tag->value ? (int) $tag->value : PHP_70_VERSION…
3782 $fileInfo->generateClassEntries = true;
3783 $fileInfo->declarationPrefix = $tag->value ? $tag->value . " " : "";
3785 $fileInfo->isUndocumentable = true;
3791 if ($fileInfo->generateClassEntries && !$fileInfo->generateFunctionEntries) {
3792 $fileInfo->generateFunctionEntries = true;
3795 handleStatements($fileInfo, $stmts, $prettyPrinter);
3796 return $fileInfo;
3799 function funcInfoToCode(FileInfo $fileInfo, FuncInfo $funcInfo): string { argument
3803 …$php81MinimumCompatibility = $fileInfo->generateLegacyArginfoForPhpVersionId === null || $fileInfo
3955 FileInfo $fileInfo, argument
3964 $fileInfo->getAllFuncInfos(), "\n",
3965 static function (FuncInfo $funcInfo) use (&$generatedFuncInfos, $fileInfo) {
3973 $code = funcInfoToCode($fileInfo, $funcInfo);
3981 if ($fileInfo->generateFunctionEntries) {
3986 $fileInfo->getAllFuncInfos(), "",
3987 static function (FuncInfo $funcInfo) use ($fileInfo, &$generatedFunctionDeclarations) {
3994 return $fileInfo->declarationPrefix . $funcInfo->getDeclaration();
3998 if (!empty($fileInfo->funcInfos)) {
3999 $code .= generateFunctionEntries(null, $fileInfo->funcInfos);
4002 foreach ($fileInfo->classInfos as $classInfo) {
4007 …$php82MinimumCompatibility = $fileInfo->generateLegacyArginfoForPhpVersionId === null || $fileInfo
4009 if ($fileInfo->generateClassEntries) {
4010 …if ($attributeInitializationCode = generateAttributeInitialization($fileInfo->funcInfos, $allConst…
4016 if ($attributeInitializationCode !== "" || !empty($fileInfo->constInfos)) {
4020 foreach ($fileInfo->constInfos as $constInfo) {
4024 if (!empty($attributeInitializationCode !== "" && $fileInfo->constInfos)) {
4032 $code .= generateClassEntryCode($fileInfo, $allConstInfos);
4041 function generateClassEntryCode(FileInfo $fileInfo, iterable $allConstInfos): string { argument
4044 foreach ($fileInfo->classInfos as $class) {
4697 $fileInfo = processStubFile($location, $context); variable
4698 if ($fileInfo) {
4699 $fileInfos[] = $fileInfo;
4712 foreach ($fileInfos as $fileInfo) {
4713 foreach ($fileInfo->getAllFuncInfos() as $funcInfo) {
4734 foreach ($fileInfos as $fileInfo) {
4735 foreach ($fileInfo->getAllFuncInfos() as $funcInfo) {
4744 foreach ($fileInfo->classInfos as $classInfo) {