aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/BinaryFormat/Code.php
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2024-03-15 19:02:22 +0900
committernsfisis <nsfisis@gmail.com>2024-03-15 19:02:22 +0900
commit9b45796547c8022b98a9254320323d72aecd81cb (patch)
tree5aaf49a070859ff4c226c4efef5de0174d51d36d /src/BinaryFormat/Code.php
parentb2f2bbf72d7c5009f56f15fa972957ea399ad221 (diff)
downloadphp-waddiwasi-9b45796547c8022b98a9254320323d72aecd81cb.tar.gz
php-waddiwasi-9b45796547c8022b98a9254320323d72aecd81cb.tar.zst
php-waddiwasi-9b45796547c8022b98a9254320323d72aecd81cb.zip
refactor: remove Expr class
Diffstat (limited to 'src/BinaryFormat/Code.php')
-rw-r--r--src/BinaryFormat/Code.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/BinaryFormat/Code.php b/src/BinaryFormat/Code.php
index cb0dbe6..6acf1e7 100644
--- a/src/BinaryFormat/Code.php
+++ b/src/BinaryFormat/Code.php
@@ -4,16 +4,17 @@ declare(strict_types=1);
namespace Nsfisis\Waddiwasi\BinaryFormat;
-use Nsfisis\Waddiwasi\Structure\Instructions\Expr;
+use Nsfisis\Waddiwasi\Structure\Instructions\Instr;
final readonly class Code
{
/**
* @param list<Locals> $compressedLocals
+ * @param list<Instr> $body
*/
public function __construct(
public array $compressedLocals,
- public Expr $body,
+ public array $body,
) {
}
}