Lines Matching refs:fileInfo

58         $fileInfo = processStubFile($pathName, $context);
59 if ($fileInfo) {
60 $fileInfos[] = $fileInfo;
88 if (!$fileInfo = $context->parsedFiles[$stubFile] ?? null) {
94 $fileInfo = parseStubFile($stubContent);
95 $context->parsedFiles[$stubFile] = $fileInfo;
97 foreach ($fileInfo->dependencies as $dependency) {
113 $constInfos = $fileInfo->getAllConstInfos();
118 return $fileInfo;
123 $fileInfo,
134 if ($fileInfo->shouldGenerateLegacyArginfo()) {
135 $legacyFileInfo = clone $fileInfo;
160 return $fileInfo;
4707 function handleStatements(FileInfo $fileInfo, array $stmts, PrettyPrinterAbstract $prettyPrinter) { argument
4717 handleStatements($fileInfo, $stmt->stmts, $prettyPrinter);
4723 $fileInfo->constInfos[] = parseConstLike(
4731 $fileInfo->isUndocumentable,
4732 $fileInfo->getMinimumPhpVersionIdCompatibility(),
4740 $fileInfo->funcInfos[] = parseFunctionLike(
4747 $fileInfo->isUndocumentable,
4748 $fileInfo->getMinimumPhpVersionIdCompatibility()
4778 $fileInfo->isUndocumentable,
4779 $fileInfo->getMinimumPhpVersionIdCompatibility(),
4796 $fileInfo->getMinimumPhpVersionIdCompatibility(),
4811 $fileInfo->isUndocumentable,
4812 $fileInfo->getMinimumPhpVersionIdCompatibility()
4822 $fileInfo->classInfos[] = parseClass(
4823 …tyInfos, $methodInfos, $enumCaseInfos, $cond, $fileInfo->getMinimumPhpVersionIdCompatibility(), $f…
4831 …$fileInfo->dependencies[] = (string)EvaluatedValue::createFromExpression($expr->expr, null, null, …
4857 $fileInfo = new FileInfo;
4863 $fileInfo->generateFunctionEntries = true;
4864 $fileInfo->declarationPrefix = $tag->value ? $tag->value . " " : "";
4874 …$fileInfo->setMinimumPhpVersionIdCompatibility($tag->value ? (int) $tag->value : PHP_70_VERSION_ID…
4876 $fileInfo->generateClassEntries = true;
4877 $fileInfo->declarationPrefix = $tag->value ? $tag->value . " " : "";
4879 $fileInfo->isUndocumentable = true;
4885 if ($fileInfo->generateClassEntries && !$fileInfo->generateFunctionEntries) {
4886 $fileInfo->generateFunctionEntries = true;
4889 handleStatements($fileInfo, $stmts, $prettyPrinter);
4890 return $fileInfo;
4893 function funcInfoToCode(FileInfo $fileInfo, FuncInfo $funcInfo): string { argument
4897 …$php81MinimumCompatibility = $fileInfo->getMinimumPhpVersionIdCompatibility() === null || $fileInf…
5076 FileInfo $fileInfo, argument
5086 $fileInfo->getAllFuncInfos(), "\n",
5087 static function (FuncInfo $funcInfo) use (&$generatedFuncInfos, $fileInfo) {
5095 $code = funcInfoToCode($fileInfo, $funcInfo);
5107 if ($fileInfo->generateFunctionEntries) {
5109 $fileInfo->getAllFuncInfos(), "\n",
5122 $fileInfo->getAllFuncInfos(), "",
5123 static function (FuncInfo $funcInfo) use ($fileInfo, &$generatedFunctionDeclarations) {
5130 return $fileInfo->declarationPrefix . $funcInfo->getDeclaration();
5134 $code .= generateFunctionEntries(null, $fileInfo->funcInfos);
5136 foreach ($fileInfo->classInfos as $classInfo) {
5141 …$php80MinimumCompatibility = $fileInfo->getMinimumPhpVersionIdCompatibility() === null || $fileInf…
5143 if ($fileInfo->generateClassEntries) {
5144 …ationCode = generateFunctionAttributeInitialization($fileInfo->funcInfos, $allConstInfos, $fileInf…
5150 if ($attributeInitializationCode !== "" || !empty($fileInfo->constInfos)) {
5154 foreach ($fileInfo->constInfos as $constInfo) {
5158 if ($attributeInitializationCode !== "" && $fileInfo->constInfos) {
5166 $code .= generateClassEntryCode($fileInfo, $allConstInfos);
5173 function generateClassEntryCode(FileInfo $fileInfo, array $allConstInfos): string { argument
5176 foreach ($fileInfo->classInfos as $class) {
6079 $fileInfo = processStubFile($location, $context); variable
6080 if ($fileInfo) {
6081 $fileInfos[] = $fileInfo;
6094 foreach ($fileInfos as $fileInfo) {
6095 foreach ($fileInfo->getAllFuncInfos() as $funcInfo) {
6125 foreach ($fileInfos as $fileInfo) {
6126 foreach ($fileInfo->getAllFuncInfos() as $funcInfo) {
6135 foreach ($fileInfo->classInfos as $classInfo) {