🐞 fix: Error cleanup, add test harness

This commit is contained in:
Keith Solomon
2026-03-21 23:21:56 -05:00
parent adabacc48d
commit 8e66d69b9e
1743 changed files with 156124 additions and 69 deletions
@@ -0,0 +1,29 @@
<?php declare(strict_types=1);
namespace PhpParser\Node\Expr;
use PhpParser\Node\Expr;
class YieldFrom extends Expr {
/** @var Expr Expression to yield from */
public Expr $expr;
/**
* Constructs an "yield from" node.
*
* @param Expr $expr Expression
* @param array<string, mixed> $attributes Additional attributes
*/
public function __construct(Expr $expr, array $attributes = []) {
$this->attributes = $attributes;
$this->expr = $expr;
}
public function getSubNodeNames(): array {
return ['expr'];
}
public function getType(): string {
return 'Expr_YieldFrom';
}
}