aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/WebAssembly/Validation/Context.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/WebAssembly/Validation/Context.php')
-rw-r--r--src/WebAssembly/Validation/Context.php42
1 files changed, 42 insertions, 0 deletions
diff --git a/src/WebAssembly/Validation/Context.php b/src/WebAssembly/Validation/Context.php
new file mode 100644
index 0000000..59c7db4
--- /dev/null
+++ b/src/WebAssembly/Validation/Context.php
@@ -0,0 +1,42 @@
+<?php
+
+declare(strict_types=1);
+
+namespace Nsfisis\Waddiwasi\WebAssembly\Validation;
+
+use Nsfisis\Waddiwasi\WebAssembly\Structure\Types\FuncType;
+use Nsfisis\Waddiwasi\WebAssembly\Structure\Types\GlobalType;
+use Nsfisis\Waddiwasi\WebAssembly\Structure\Types\MemType;
+use Nsfisis\Waddiwasi\WebAssembly\Structure\Types\TableType;
+use Nsfisis\Waddiwasi\WebAssembly\Structure\Types\ValType;
+
+final class Context
+{
+ /**
+ * @param list<FuncType> $types
+ * @param list<FuncType> $funcs
+ * @param list<TableType> $tables
+ * @param list<MemType> $mems
+ * @param list<GlobalType> $globals
+ * @param list<ValType> $elems
+ * @param list<bool> $datas
+ * @param list<mixed> $locals
+ * @param list<mixed> $labels
+ * @param list<mixed> $return
+ * @param list<int> $refs
+ */
+ public function __construct(
+ public array $types,
+ public array $funcs,
+ public array $tables,
+ public array $mems,
+ public array $globals,
+ public array $elems,
+ public array $datas,
+ public array $locals,
+ public array $labels,
+ public array $return,
+ public array $refs,
+ ) {
+ }
+}