From 26f49b7e27076e689541b9e13a1b54f60a4ee5c2 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Thu, 11 Jul 2024 02:57:23 +0900 Subject: feat: organize namespaces --- .../Structure/Instructions/Instrs/Control/If_.php | 26 ++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 src/WebAssembly/Structure/Instructions/Instrs/Control/If_.php (limited to 'src/WebAssembly/Structure/Instructions/Instrs/Control/If_.php') diff --git a/src/WebAssembly/Structure/Instructions/Instrs/Control/If_.php b/src/WebAssembly/Structure/Instructions/Instrs/Control/If_.php new file mode 100644 index 0000000..8afdc8b --- /dev/null +++ b/src/WebAssembly/Structure/Instructions/Instrs/Control/If_.php @@ -0,0 +1,26 @@ + $thenBody + * @param list $elseBody + */ + protected function __construct( + public BlockType $type, + public array $thenBody, + public array $elseBody, + ) { + } + + public static function opName(): string + { + return "if"; + } +} -- cgit v1.2.3-70-g09d2