Lines Matching refs:fileInfo

58         $fileInfo = processStubFile($pathName, $context);
59 if ($fileInfo) {
60 $fileInfos[] = $fileInfo;
86 if (!$fileInfo = $context->parsedFiles[$stubFile] ?? null) {
89 $fileInfo = parseStubFile($stubContent);
90 $context->parsedFiles[$stubFile] = $fileInfo;
92 foreach ($fileInfo->dependencies as $dependency) {
108 $constInfos = $fileInfo->getAllConstInfos();
113 return $fileInfo;
118 $fileInfo,
126 if ($fileInfo->shouldGenerateLegacyArginfo()) {
127 $legacyFileInfo = clone $fileInfo;
152 return $fileInfo;
4846 function handleStatements(FileInfo $fileInfo, array $stmts, PrettyPrinterAbstract $prettyPrinter) { argument
4856 handleStatements($fileInfo, $stmt->stmts, $prettyPrinter);
4862 $fileInfo->constInfos[] = parseConstLike(
4870 $fileInfo->isUndocumentable,
4871 $fileInfo->getMinimumPhpVersionIdCompatibility(),
4879 $fileInfo->funcInfos[] = parseFunctionLike(
4886 $fileInfo->isUndocumentable,
4887 $fileInfo->getMinimumPhpVersionIdCompatibility()
4917 $fileInfo->isUndocumentable,
4918 $fileInfo->getMinimumPhpVersionIdCompatibility(),
4935 $fileInfo->getMinimumPhpVersionIdCompatibility(),
4950 $fileInfo->isUndocumentable,
4951 $fileInfo->getMinimumPhpVersionIdCompatibility()
4961 $fileInfo->classInfos[] = parseClass(
4962 …tyInfos, $methodInfos, $enumCaseInfos, $cond, $fileInfo->getMinimumPhpVersionIdCompatibility(), $f…
4970 …$fileInfo->dependencies[] = (string)EvaluatedValue::createFromExpression($expr->expr, null, null, …
4996 $fileInfo = new FileInfo;
5002 $fileInfo->generateFunctionEntries = true;
5003 $fileInfo->declarationPrefix = $tag->value ? $tag->value . " " : "";
5013 …$fileInfo->setMinimumPhpVersionIdCompatibility($tag->value ? (int) $tag->value : PHP_70_VERSION_ID…
5015 $fileInfo->generateClassEntries = true;
5016 $fileInfo->declarationPrefix = $tag->value ? $tag->value . " " : "";
5018 $fileInfo->isUndocumentable = true;
5024 if ($fileInfo->generateClassEntries && !$fileInfo->generateFunctionEntries) {
5025 $fileInfo->generateFunctionEntries = true;
5028 handleStatements($fileInfo, $stmts, $prettyPrinter);
5029 return $fileInfo;
5032 function funcInfoToCode(FileInfo $fileInfo, FuncInfo $funcInfo): string { argument
5036 …$php81MinimumCompatibility = $fileInfo->getMinimumPhpVersionIdCompatibility() === null || $fileInf…
5215 FileInfo $fileInfo, argument
5225 $fileInfo->getAllFuncInfos(), "\n",
5226 static function (FuncInfo $funcInfo) use (&$generatedFuncInfos, $fileInfo) {
5234 $code = funcInfoToCode($fileInfo, $funcInfo);
5246 if ($fileInfo->generateFunctionEntries) {
5248 $fileInfo->getAllFuncInfos(), "\n",
5261 $fileInfo->getAllFuncInfos(), "",
5262 static function (FuncInfo $funcInfo) use ($fileInfo, &$generatedFunctionDeclarations) {
5269 return $fileInfo->declarationPrefix . $funcInfo->getDeclaration();
5273 $code .= generateFunctionEntries(null, $fileInfo->funcInfos);
5275 foreach ($fileInfo->classInfos as $classInfo) {
5280 …$php80MinimumCompatibility = $fileInfo->getMinimumPhpVersionIdCompatibility() === null || $fileInf…
5282 if ($fileInfo->generateClassEntries) {
5283 …ationCode = generateFunctionAttributeInitialization($fileInfo->funcInfos, $allConstInfos, $fileInf…
5289 if ($attributeInitializationCode !== "" || !empty($fileInfo->constInfos)) {
5293 foreach ($fileInfo->constInfos as $constInfo) {
5297 if ($attributeInitializationCode !== "" && $fileInfo->constInfos) {
5305 $code .= generateClassEntryCode($fileInfo, $allConstInfos);
5312 function generateClassEntryCode(FileInfo $fileInfo, array $allConstInfos): string { argument
5315 foreach ($fileInfo->classInfos as $class) {
6218 $fileInfo = processStubFile($location, $context); variable
6219 if ($fileInfo) {
6220 $fileInfos[] = $fileInfo;
6233 foreach ($fileInfos as $fileInfo) {
6234 foreach ($fileInfo->getAllFuncInfos() as $funcInfo) {
6264 foreach ($fileInfos as $fileInfo) {
6265 foreach ($fileInfo->getAllFuncInfos() as $funcInfo) {
6274 foreach ($fileInfo->classInfos as $classInfo) {