Lines Matching refs:fileInfo
40 $fileInfo = processStubFile($pathName, $context);
41 if ($fileInfo) {
42 $fileInfos[] = $fileInfo;
66 $fileInfo = parseStubFile($stubCode);
68 $arginfoCode = generateArgInfoCode($fileInfo, $stubHash);
73 if ($fileInfo->generateLegacyArginfo) {
74 $legacyFileInfo = clone $fileInfo;
89 return $fileInfo;
2540 function handleStatements(FileInfo $fileInfo, array $stmts, PrettyPrinterAbstract $prettyPrinter) { argument
2548 handleStatements($fileInfo, $stmt->stmts, $prettyPrinter);
2554 $fileInfo->funcInfos[] = parseFunctionLike(
2613 $fileInfo->classInfos[] = parseClass(
2636 $fileInfo = new FileInfo;
2642 $fileInfo->generateFunctionEntries = true;
2643 $fileInfo->declarationPrefix = $tag->value ? $tag->value . " " : "";
2645 $fileInfo->generateLegacyArginfo = true;
2647 $fileInfo->generateClassEntries = true;
2648 $fileInfo->declarationPrefix = $tag->value ? $tag->value . " " : "";
2654 if ($fileInfo->generateClassEntries && !$fileInfo->generateFunctionEntries) {
2655 $fileInfo->generateFunctionEntries = true;
2658 handleStatements($fileInfo, $stmts, $prettyPrinter);
2659 return $fileInfo;
2797 function generateArgInfoCode(FileInfo $fileInfo, string $stubHash): string { argument
2802 $fileInfo->getAllFuncInfos(), "\n",
2819 if ($fileInfo->generateFunctionEntries) {
2824 $fileInfo->getAllFuncInfos(), "",
2825 function (FuncInfo $funcInfo) use($fileInfo, &$generatedFunctionDeclarations) {
2832 return $fileInfo->declarationPrefix . $funcInfo->getDeclaration();
2836 if (!empty($fileInfo->funcInfos)) {
2837 $code .= generateFunctionEntries(null, $fileInfo->funcInfos);
2840 foreach ($fileInfo->classInfos as $classInfo) {
2845 if ($fileInfo->generateClassEntries) {
2846 $code .= generateClassEntryCode($fileInfo);
2852 function generateClassEntryCode(FileInfo $fileInfo): string { argument
2855 foreach ($fileInfo->classInfos as $class) {
3331 $fileInfo = processStubFile($location, $context); variable
3332 if ($fileInfo) {
3333 $fileInfos[] = $fileInfo;
3346 foreach ($fileInfos as $fileInfo) {
3347 foreach ($fileInfo->getAllFuncInfos() as $funcInfo) {
3368 foreach ($fileInfos as $fileInfo) {
3369 foreach ($fileInfo->getAllFuncInfos() as $funcInfo) {
3379 foreach ($fileInfo->classInfos as $classInfo) {