diff options
Diffstat (limited to 'src/WebAssembly/Structure/Modules/Func.php')
| -rw-r--r-- | src/WebAssembly/Structure/Modules/Func.php | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/WebAssembly/Structure/Modules/Func.php b/src/WebAssembly/Structure/Modules/Func.php new file mode 100644 index 0000000..f1c305e --- /dev/null +++ b/src/WebAssembly/Structure/Modules/Func.php @@ -0,0 +1,21 @@ +<?php + +declare(strict_types=1); + +namespace Nsfisis\Waddiwasi\WebAssembly\Structure\Modules; + +use Nsfisis\Waddiwasi\WebAssembly\Structure\Instructions\Instr; + +final readonly class Func +{ + /** + * @param list<Local> $locals + * @param list<Instr> $body + */ + public function __construct( + public int $type, + public array $locals, + public array $body, + ) { + } +} |
