Lines Matching refs:fileInfo

49         $fileInfo = processStubFile($pathName, $context);
50 if ($fileInfo) {
51 $fileInfos[] = $fileInfo;
77 if (!$fileInfo = $context->parsedFiles[$stubFile] ?? null) {
79 $fileInfo = parseStubFile($stubCode ?? file_get_contents($stubFile));
80 $context->parsedFiles[$stubFile] = $fileInfo;
82 foreach ($fileInfo->dependencies as $dependency) {
98 $constInfos = $fileInfo->getAllConstInfos();
103 return $fileInfo;
108 $fileInfo,
116 …if ($fileInfo->generateLegacyArginfoForPhpVersionId !== null && $fileInfo->generateLegacyArginfoFo…
117 $legacyFileInfo = clone $fileInfo;
140 return $fileInfo;
3834 function handleStatements(FileInfo $fileInfo, array $stmts, PrettyPrinterAbstract $prettyPrinter) { argument
3844 handleStatements($fileInfo, $stmt->stmts, $prettyPrinter);
3850 $fileInfo->constInfos[] = parseConstLike(
3858 $fileInfo->generateLegacyArginfoForPhpVersionId,
3866 $fileInfo->funcInfos[] = parseFunctionLike(
3873 $fileInfo->isUndocumentable
3903 $fileInfo->generateLegacyArginfoForPhpVersionId,
3919 $fileInfo->generateLegacyArginfoForPhpVersionId,
3934 $fileInfo->isUndocumentable
3944 $fileInfo->classInfos[] = parseClass(
3945 …rtyInfos, $methodInfos, $enumCaseInfos, $cond, $fileInfo->generateLegacyArginfoForPhpVersionId, $f…
3953 …$fileInfo->dependencies[] = (string)EvaluatedValue::createFromExpression($expr->expr, null, null, …
3979 $fileInfo = new FileInfo;
3985 $fileInfo->generateFunctionEntries = true;
3986 $fileInfo->declarationPrefix = $tag->value ? $tag->value . " " : "";
3996 …$fileInfo->generateLegacyArginfoForPhpVersionId = $tag->value ? (int) $tag->value : PHP_70_VERSION…
3998 $fileInfo->generateClassEntries = true;
3999 $fileInfo->declarationPrefix = $tag->value ? $tag->value . " " : "";
4001 $fileInfo->isUndocumentable = true;
4007 if ($fileInfo->generateClassEntries && !$fileInfo->generateFunctionEntries) {
4008 $fileInfo->generateFunctionEntries = true;
4011 handleStatements($fileInfo, $stmts, $prettyPrinter);
4012 return $fileInfo;
4015 function funcInfoToCode(FileInfo $fileInfo, FuncInfo $funcInfo): string { argument
4019 …$php81MinimumCompatibility = $fileInfo->generateLegacyArginfoForPhpVersionId === null || $fileInfo
4171 FileInfo $fileInfo, argument
4180 $fileInfo->getAllFuncInfos(), "\n",
4181 static function (FuncInfo $funcInfo) use (&$generatedFuncInfos, $fileInfo) {
4189 $code = funcInfoToCode($fileInfo, $funcInfo);
4197 if ($fileInfo->generateFunctionEntries) {
4202 $fileInfo->getAllFuncInfos(), "",
4203 static function (FuncInfo $funcInfo) use ($fileInfo, &$generatedFunctionDeclarations) {
4210 return $fileInfo->declarationPrefix . $funcInfo->getDeclaration();
4214 if (!empty($fileInfo->funcInfos)) {
4215 $code .= generateFunctionEntries(null, $fileInfo->funcInfos);
4218 foreach ($fileInfo->classInfos as $classInfo) {
4223 …$php80MinimumCompatibility = $fileInfo->generateLegacyArginfoForPhpVersionId === null || $fileInfo
4225 if ($fileInfo->generateClassEntries) {
4226 …ationCode = generateFunctionAttributeInitialization($fileInfo->funcInfos, $allConstInfos, $fileInf…
4232 if ($attributeInitializationCode !== "" || !empty($fileInfo->constInfos)) {
4236 foreach ($fileInfo->constInfos as $constInfo) {
4240 if (!empty($attributeInitializationCode !== "" && $fileInfo->constInfos)) {
4248 $code .= generateClassEntryCode($fileInfo, $allConstInfos);
4257 function generateClassEntryCode(FileInfo $fileInfo, iterable $allConstInfos): string { argument
4260 foreach ($fileInfo->classInfos as $class) {
4981 $fileInfo = processStubFile($location, $context); variable
4982 if ($fileInfo) {
4983 $fileInfos[] = $fileInfo;
4996 foreach ($fileInfos as $fileInfo) {
4997 foreach ($fileInfo->getAllFuncInfos() as $funcInfo) {
5018 foreach ($fileInfos as $fileInfo) {
5019 foreach ($fileInfo->getAllFuncInfos() as $funcInfo) {
5028 foreach ($fileInfo->classInfos as $classInfo) {