diff options
| author | nsfisis <nsfisis@gmail.com> | 2024-07-11 03:50:50 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2024-07-11 04:14:03 +0900 |
| commit | 8a083ed74e9f4472441175e187208012927ed357 (patch) | |
| tree | 3686a0f61f3fccc5ded3eda28b92b8bf7765fd2f /src/WebAssembly/Structure/Modules/Elem.php | |
| parent | 26f49b7e27076e689541b9e13a1b54f60a4ee5c2 (diff) | |
| download | php-waddiwasi-8a083ed74e9f4472441175e187208012927ed357.tar.gz php-waddiwasi-8a083ed74e9f4472441175e187208012927ed357.tar.zst php-waddiwasi-8a083ed74e9f4472441175e187208012927ed357.zip | |
feat: simplify ValType structure
Diffstat (limited to 'src/WebAssembly/Structure/Modules/Elem.php')
| -rw-r--r-- | src/WebAssembly/Structure/Modules/Elem.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/WebAssembly/Structure/Modules/Elem.php b/src/WebAssembly/Structure/Modules/Elem.php index 1b9831f..646315d 100644 --- a/src/WebAssembly/Structure/Modules/Elem.php +++ b/src/WebAssembly/Structure/Modules/Elem.php @@ -5,15 +5,16 @@ declare(strict_types=1); namespace Nsfisis\Waddiwasi\WebAssembly\Structure\Modules; use Nsfisis\Waddiwasi\WebAssembly\Structure\Instructions\Instr; -use Nsfisis\Waddiwasi\WebAssembly\Structure\Types\RefType; +use Nsfisis\Waddiwasi\WebAssembly\Structure\Types\ValType; final readonly class Elem { /** + * @param ValType::FuncRef|ValType::ExternRef $type * @param list<list<Instr>> $init */ public function __construct( - public RefType $type, + public ValType $type, public array $init, public ElemMode $mode, ) { |
