aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/BinaryFormat/Code.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/BinaryFormat/Code.php')
-rw-r--r--src/BinaryFormat/Code.php19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/BinaryFormat/Code.php b/src/BinaryFormat/Code.php
new file mode 100644
index 0000000..cb0dbe6
--- /dev/null
+++ b/src/BinaryFormat/Code.php
@@ -0,0 +1,19 @@
+<?php
+
+declare(strict_types=1);
+
+namespace Nsfisis\Waddiwasi\BinaryFormat;
+
+use Nsfisis\Waddiwasi\Structure\Instructions\Expr;
+
+final readonly class Code
+{
+ /**
+ * @param list<Locals> $compressedLocals
+ */
+ public function __construct(
+ public array $compressedLocals,
+ public Expr $body,
+ ) {
+ }
+}