aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Structure/Types/ExternType.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/Structure/Types/ExternType.php')
-rw-r--r--src/Structure/Types/ExternType.php28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/Structure/Types/ExternType.php b/src/Structure/Types/ExternType.php
new file mode 100644
index 0000000..404f755
--- /dev/null
+++ b/src/Structure/Types/ExternType.php
@@ -0,0 +1,28 @@
+<?php
+
+declare(strict_types=1);
+
+namespace Nsfisis\Waddiwasi\Structure\Types;
+
+abstract readonly class ExternType
+{
+ final public static function Func(FuncType $type): ExternTypes\Func
+ {
+ return new ExternTypes\Func($type);
+ }
+
+ final public static function Table(TableType $type): ExternTypes\Table
+ {
+ return new ExternTypes\Table($type);
+ }
+
+ final public static function Mem(MemType $type): ExternTypes\Mem
+ {
+ return new ExternTypes\Mem($type);
+ }
+
+ final public static function Global(GlobalType $type): ExternTypes\Global_
+ {
+ return new ExternTypes\Global_($type);
+ }
+}