Lines Matching refs:stmts
2523 function getFileDocComment(array $stmts): ?DocComment { argument
2524 if (empty($stmts)) {
2528 $comments = $stmts[0]->getComments();
2540 function handleStatements(FileInfo $fileInfo, array $stmts, PrettyPrinterAbstract $prettyPrinter) { argument
2542 foreach ($stmts as $stmt) {
2548 handleStatements($fileInfo, $stmt->stmts, $prettyPrinter);
2570 foreach ($stmt->stmts as $classStmt) {
2633 $stmts = $parser->parse($code);
2634 $nodeTraverser->traverse($stmts);
2637 $fileDocComment = getFileDocComment($stmts);
2658 handleStatements($fileInfo, $stmts, $prettyPrinter);