aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Structure/Instructions
diff options
context:
space:
mode:
Diffstat (limited to 'src/Structure/Instructions')
-rw-r--r--src/Structure/Instructions/Instrs/Control/Block.php2
-rw-r--r--src/Structure/Instructions/Instrs/Control/Br.php2
-rw-r--r--src/Structure/Instructions/Instrs/Control/BrIf.php2
-rw-r--r--src/Structure/Instructions/Instrs/Control/BrTable.php2
-rw-r--r--src/Structure/Instructions/Instrs/Control/Call.php2
-rw-r--r--src/Structure/Instructions/Instrs/Control/CallIndirect.php2
-rw-r--r--src/Structure/Instructions/Instrs/Control/If_.php2
-rw-r--r--src/Structure/Instructions/Instrs/Control/Loop.php2
-rw-r--r--src/Structure/Instructions/Instrs/Memory/DataDrop.php2
-rw-r--r--src/Structure/Instructions/Instrs/Memory/F32Load.php2
-rw-r--r--src/Structure/Instructions/Instrs/Memory/F32Store.php2
-rw-r--r--src/Structure/Instructions/Instrs/Memory/F64Load.php2
-rw-r--r--src/Structure/Instructions/Instrs/Memory/F64Store.php2
-rw-r--r--src/Structure/Instructions/Instrs/Memory/I32Load.php2
-rw-r--r--src/Structure/Instructions/Instrs/Memory/I32Load16S.php2
-rw-r--r--src/Structure/Instructions/Instrs/Memory/I32Load16U.php2
-rw-r--r--src/Structure/Instructions/Instrs/Memory/I32Load8S.php2
-rw-r--r--src/Structure/Instructions/Instrs/Memory/I32Load8U.php2
-rw-r--r--src/Structure/Instructions/Instrs/Memory/I32Store.php2
-rw-r--r--src/Structure/Instructions/Instrs/Memory/I32Store16.php2
-rw-r--r--src/Structure/Instructions/Instrs/Memory/I32Store8.php2
-rw-r--r--src/Structure/Instructions/Instrs/Memory/I64Load.php2
-rw-r--r--src/Structure/Instructions/Instrs/Memory/I64Load16S.php2
-rw-r--r--src/Structure/Instructions/Instrs/Memory/I64Load16U.php2
-rw-r--r--src/Structure/Instructions/Instrs/Memory/I64Load32S.php2
-rw-r--r--src/Structure/Instructions/Instrs/Memory/I64Load32U.php2
-rw-r--r--src/Structure/Instructions/Instrs/Memory/I64Load8S.php2
-rw-r--r--src/Structure/Instructions/Instrs/Memory/I64Load8U.php2
-rw-r--r--src/Structure/Instructions/Instrs/Memory/I64Store.php2
-rw-r--r--src/Structure/Instructions/Instrs/Memory/I64Store16.php2
-rw-r--r--src/Structure/Instructions/Instrs/Memory/I64Store32.php2
-rw-r--r--src/Structure/Instructions/Instrs/Memory/I64Store8.php2
-rw-r--r--src/Structure/Instructions/Instrs/Memory/MemoryInit.php2
-rw-r--r--src/Structure/Instructions/Instrs/Numeric/F32Const.php2
-rw-r--r--src/Structure/Instructions/Instrs/Numeric/F64Const.php2
-rw-r--r--src/Structure/Instructions/Instrs/Numeric/I32Const.php2
-rw-r--r--src/Structure/Instructions/Instrs/Numeric/I64Const.php2
-rw-r--r--src/Structure/Instructions/Instrs/Parametric/Select.php2
-rw-r--r--src/Structure/Instructions/Instrs/Reference/RefFunc.php2
-rw-r--r--src/Structure/Instructions/Instrs/Reference/RefNull.php2
-rw-r--r--src/Structure/Instructions/Instrs/Table/ElemDrop.php2
-rw-r--r--src/Structure/Instructions/Instrs/Table/TableCopy.php2
-rw-r--r--src/Structure/Instructions/Instrs/Table/TableFill.php2
-rw-r--r--src/Structure/Instructions/Instrs/Table/TableGet.php2
-rw-r--r--src/Structure/Instructions/Instrs/Table/TableGrow.php2
-rw-r--r--src/Structure/Instructions/Instrs/Table/TableInit.php2
-rw-r--r--src/Structure/Instructions/Instrs/Table/TableSet.php2
-rw-r--r--src/Structure/Instructions/Instrs/Table/TableSize.php2
-rw-r--r--src/Structure/Instructions/Instrs/Variable/GlobalGet.php2
-rw-r--r--src/Structure/Instructions/Instrs/Variable/GlobalSet.php2
-rw-r--r--src/Structure/Instructions/Instrs/Variable/LocalGet.php2
-rw-r--r--src/Structure/Instructions/Instrs/Variable/LocalSet.php2
-rw-r--r--src/Structure/Instructions/Instrs/Variable/LocalTee.php2
53 files changed, 53 insertions, 53 deletions
diff --git a/src/Structure/Instructions/Instrs/Control/Block.php b/src/Structure/Instructions/Instrs/Control/Block.php
index 2be7a1f..a4842c0 100644
--- a/src/Structure/Instructions/Instrs/Control/Block.php
+++ b/src/Structure/Instructions/Instrs/Control/Block.php
@@ -11,7 +11,7 @@ final readonly class Block extends Instr
/**
* @param list<Instr> $body
*/
- public function __construct(
+ protected function __construct(
public BlockType $type,
public array $body,
) {
diff --git a/src/Structure/Instructions/Instrs/Control/Br.php b/src/Structure/Instructions/Instrs/Control/Br.php
index 836f3f1..b8564a0 100644
--- a/src/Structure/Instructions/Instrs/Control/Br.php
+++ b/src/Structure/Instructions/Instrs/Control/Br.php
@@ -9,7 +9,7 @@ use Nsfisis\Waddiwasi\Structure\Types\LabelIdx;
final readonly class Br extends Instr
{
- public function __construct(
+ protected function __construct(
public LabelIdx $label,
) {
}
diff --git a/src/Structure/Instructions/Instrs/Control/BrIf.php b/src/Structure/Instructions/Instrs/Control/BrIf.php
index a15a716..980c76e 100644
--- a/src/Structure/Instructions/Instrs/Control/BrIf.php
+++ b/src/Structure/Instructions/Instrs/Control/BrIf.php
@@ -9,7 +9,7 @@ use Nsfisis\Waddiwasi\Structure\Types\LabelIdx;
final readonly class BrIf extends Instr
{
- public function __construct(
+ protected function __construct(
public LabelIdx $label,
) {
}
diff --git a/src/Structure/Instructions/Instrs/Control/BrTable.php b/src/Structure/Instructions/Instrs/Control/BrTable.php
index 57a08f3..37f61ed 100644
--- a/src/Structure/Instructions/Instrs/Control/BrTable.php
+++ b/src/Structure/Instructions/Instrs/Control/BrTable.php
@@ -12,7 +12,7 @@ final readonly class BrTable extends Instr
/**
* @param list<LabelIdx> $labelTable
*/
- public function __construct(
+ protected function __construct(
public array $labelTable,
public LabelIdx $defaultLabel,
) {
diff --git a/src/Structure/Instructions/Instrs/Control/Call.php b/src/Structure/Instructions/Instrs/Control/Call.php
index c8702d3..472752b 100644
--- a/src/Structure/Instructions/Instrs/Control/Call.php
+++ b/src/Structure/Instructions/Instrs/Control/Call.php
@@ -9,7 +9,7 @@ use Nsfisis\Waddiwasi\Structure\Types\FuncIdx;
final readonly class Call extends Instr
{
- public function __construct(
+ protected function __construct(
public FuncIdx $func,
) {
}
diff --git a/src/Structure/Instructions/Instrs/Control/CallIndirect.php b/src/Structure/Instructions/Instrs/Control/CallIndirect.php
index 2cf28a5..6f43e06 100644
--- a/src/Structure/Instructions/Instrs/Control/CallIndirect.php
+++ b/src/Structure/Instructions/Instrs/Control/CallIndirect.php
@@ -10,7 +10,7 @@ use Nsfisis\Waddiwasi\Structure\Types\TypeIdx;
final readonly class CallIndirect extends Instr
{
- public function __construct(
+ protected function __construct(
public TableIdx $funcTable,
public TypeIdx $type,
) {
diff --git a/src/Structure/Instructions/Instrs/Control/If_.php b/src/Structure/Instructions/Instrs/Control/If_.php
index 0536be0..1eeee47 100644
--- a/src/Structure/Instructions/Instrs/Control/If_.php
+++ b/src/Structure/Instructions/Instrs/Control/If_.php
@@ -12,7 +12,7 @@ final readonly class If_ extends Instr
* @param list<Instr> $thenBody
* @param list<Instr> $elseBody
*/
- public function __construct(
+ protected function __construct(
public BlockType $type,
public array $thenBody,
public array $elseBody,
diff --git a/src/Structure/Instructions/Instrs/Control/Loop.php b/src/Structure/Instructions/Instrs/Control/Loop.php
index 30c85ef..839f75d 100644
--- a/src/Structure/Instructions/Instrs/Control/Loop.php
+++ b/src/Structure/Instructions/Instrs/Control/Loop.php
@@ -11,7 +11,7 @@ final readonly class Loop extends Instr
/**
* @param list<Instr> $body
*/
- public function __construct(
+ protected function __construct(
public BlockType $type,
public array $body,
) {
diff --git a/src/Structure/Instructions/Instrs/Memory/DataDrop.php b/src/Structure/Instructions/Instrs/Memory/DataDrop.php
index 4d08ef8..1764ce9 100644
--- a/src/Structure/Instructions/Instrs/Memory/DataDrop.php
+++ b/src/Structure/Instructions/Instrs/Memory/DataDrop.php
@@ -9,7 +9,7 @@ use Nsfisis\Waddiwasi\Structure\Types\DataIdx;
final readonly class DataDrop extends Instr
{
- public function __construct(
+ protected function __construct(
public DataIdx $data,
) {
}
diff --git a/src/Structure/Instructions/Instrs/Memory/F32Load.php b/src/Structure/Instructions/Instrs/Memory/F32Load.php
index d315ffc..4b06021 100644
--- a/src/Structure/Instructions/Instrs/Memory/F32Load.php
+++ b/src/Structure/Instructions/Instrs/Memory/F32Load.php
@@ -12,7 +12,7 @@ final readonly class F32Load extends Instr
* @param U32 $offset
* @param U32 $align
*/
- public function __construct(
+ protected function __construct(
public int $offset,
public int $align,
) {
diff --git a/src/Structure/Instructions/Instrs/Memory/F32Store.php b/src/Structure/Instructions/Instrs/Memory/F32Store.php
index 702698d..7c1c212 100644
--- a/src/Structure/Instructions/Instrs/Memory/F32Store.php
+++ b/src/Structure/Instructions/Instrs/Memory/F32Store.php
@@ -12,7 +12,7 @@ final readonly class F32Store extends Instr
* @param U32 $offset
* @param U32 $align
*/
- public function __construct(
+ protected function __construct(
public int $offset,
public int $align,
) {
diff --git a/src/Structure/Instructions/Instrs/Memory/F64Load.php b/src/Structure/Instructions/Instrs/Memory/F64Load.php
index 8ea4742..55778a6 100644
--- a/src/Structure/Instructions/Instrs/Memory/F64Load.php
+++ b/src/Structure/Instructions/Instrs/Memory/F64Load.php
@@ -12,7 +12,7 @@ final readonly class F64Load extends Instr
* @param U32 $offset
* @param U32 $align
*/
- public function __construct(
+ protected function __construct(
public int $offset,
public int $align,
) {
diff --git a/src/Structure/Instructions/Instrs/Memory/F64Store.php b/src/Structure/Instructions/Instrs/Memory/F64Store.php
index 3cda981..d324365 100644
--- a/src/Structure/Instructions/Instrs/Memory/F64Store.php
+++ b/src/Structure/Instructions/Instrs/Memory/F64Store.php
@@ -12,7 +12,7 @@ final readonly class F64Store extends Instr
* @param U32 $offset
* @param U32 $align
*/
- public function __construct(
+ protected function __construct(
public int $offset,
public int $align,
) {
diff --git a/src/Structure/Instructions/Instrs/Memory/I32Load.php b/src/Structure/Instructions/Instrs/Memory/I32Load.php
index 98e5e35..a5925bc 100644
--- a/src/Structure/Instructions/Instrs/Memory/I32Load.php
+++ b/src/Structure/Instructions/Instrs/Memory/I32Load.php
@@ -12,7 +12,7 @@ final readonly class I32Load extends Instr
* @param U32 $offset
* @param U32 $align
*/
- public function __construct(
+ protected function __construct(
public int $offset,
public int $align,
) {
diff --git a/src/Structure/Instructions/Instrs/Memory/I32Load16S.php b/src/Structure/Instructions/Instrs/Memory/I32Load16S.php
index f4fa975..78a15fc 100644
--- a/src/Structure/Instructions/Instrs/Memory/I32Load16S.php
+++ b/src/Structure/Instructions/Instrs/Memory/I32Load16S.php
@@ -12,7 +12,7 @@ final readonly class I32Load16S extends Instr
* @param U32 $offset
* @param U32 $align
*/
- public function __construct(
+ protected function __construct(
public int $offset,
public int $align,
) {
diff --git a/src/Structure/Instructions/Instrs/Memory/I32Load16U.php b/src/Structure/Instructions/Instrs/Memory/I32Load16U.php
index 8d6d772..475dff8 100644
--- a/src/Structure/Instructions/Instrs/Memory/I32Load16U.php
+++ b/src/Structure/Instructions/Instrs/Memory/I32Load16U.php
@@ -12,7 +12,7 @@ final readonly class I32Load16U extends Instr
* @param U32 $offset
* @param U32 $align
*/
- public function __construct(
+ protected function __construct(
public int $offset,
public int $align,
) {
diff --git a/src/Structure/Instructions/Instrs/Memory/I32Load8S.php b/src/Structure/Instructions/Instrs/Memory/I32Load8S.php
index 3d93375..ef8912a 100644
--- a/src/Structure/Instructions/Instrs/Memory/I32Load8S.php
+++ b/src/Structure/Instructions/Instrs/Memory/I32Load8S.php
@@ -12,7 +12,7 @@ final readonly class I32Load8S extends Instr
* @param U32 $offset
* @param U32 $align
*/
- public function __construct(
+ protected function __construct(
public int $offset,
public int $align,
) {
diff --git a/src/Structure/Instructions/Instrs/Memory/I32Load8U.php b/src/Structure/Instructions/Instrs/Memory/I32Load8U.php
index dcc94bc..0c05360 100644
--- a/src/Structure/Instructions/Instrs/Memory/I32Load8U.php
+++ b/src/Structure/Instructions/Instrs/Memory/I32Load8U.php
@@ -12,7 +12,7 @@ final readonly class I32Load8U extends Instr
* @param U32 $offset
* @param U32 $align
*/
- public function __construct(
+ protected function __construct(
public int $offset,
public int $align,
) {
diff --git a/src/Structure/Instructions/Instrs/Memory/I32Store.php b/src/Structure/Instructions/Instrs/Memory/I32Store.php
index c65e9c1..e104861 100644
--- a/src/Structure/Instructions/Instrs/Memory/I32Store.php
+++ b/src/Structure/Instructions/Instrs/Memory/I32Store.php
@@ -12,7 +12,7 @@ final readonly class I32Store extends Instr
* @param U32 $offset
* @param U32 $align
*/
- public function __construct(
+ protected function __construct(
public int $offset,
public int $align,
) {
diff --git a/src/Structure/Instructions/Instrs/Memory/I32Store16.php b/src/Structure/Instructions/Instrs/Memory/I32Store16.php
index 01401df..8deb592 100644
--- a/src/Structure/Instructions/Instrs/Memory/I32Store16.php
+++ b/src/Structure/Instructions/Instrs/Memory/I32Store16.php
@@ -12,7 +12,7 @@ final readonly class I32Store16 extends Instr
* @param U32 $offset
* @param U32 $align
*/
- public function __construct(
+ protected function __construct(
public int $offset,
public int $align,
) {
diff --git a/src/Structure/Instructions/Instrs/Memory/I32Store8.php b/src/Structure/Instructions/Instrs/Memory/I32Store8.php
index 07f0f90..349f78f 100644
--- a/src/Structure/Instructions/Instrs/Memory/I32Store8.php
+++ b/src/Structure/Instructions/Instrs/Memory/I32Store8.php
@@ -12,7 +12,7 @@ final readonly class I32Store8 extends Instr
* @param U32 $offset
* @param U32 $align
*/
- public function __construct(
+ protected function __construct(
public int $offset,
public int $align,
) {
diff --git a/src/Structure/Instructions/Instrs/Memory/I64Load.php b/src/Structure/Instructions/Instrs/Memory/I64Load.php
index ccb8069..89bc32a 100644
--- a/src/Structure/Instructions/Instrs/Memory/I64Load.php
+++ b/src/Structure/Instructions/Instrs/Memory/I64Load.php
@@ -12,7 +12,7 @@ final readonly class I64Load extends Instr
* @param U32 $offset
* @param U32 $align
*/
- public function __construct(
+ protected function __construct(
public int $offset,
public int $align,
) {
diff --git a/src/Structure/Instructions/Instrs/Memory/I64Load16S.php b/src/Structure/Instructions/Instrs/Memory/I64Load16S.php
index 34f9a9d..f8202a7 100644
--- a/src/Structure/Instructions/Instrs/Memory/I64Load16S.php
+++ b/src/Structure/Instructions/Instrs/Memory/I64Load16S.php
@@ -12,7 +12,7 @@ final readonly class I64Load16S extends Instr
* @param U32 $offset
* @param U32 $align
*/
- public function __construct(
+ protected function __construct(
public int $offset,
public int $align,
) {
diff --git a/src/Structure/Instructions/Instrs/Memory/I64Load16U.php b/src/Structure/Instructions/Instrs/Memory/I64Load16U.php
index 171ed96..f93b42b 100644
--- a/src/Structure/Instructions/Instrs/Memory/I64Load16U.php
+++ b/src/Structure/Instructions/Instrs/Memory/I64Load16U.php
@@ -12,7 +12,7 @@ final readonly class I64Load16U extends Instr
* @param U32 $offset
* @param U32 $align
*/
- public function __construct(
+ protected function __construct(
public int $offset,
public int $align,
) {
diff --git a/src/Structure/Instructions/Instrs/Memory/I64Load32S.php b/src/Structure/Instructions/Instrs/Memory/I64Load32S.php
index e26fbc8..6aaa5e3 100644
--- a/src/Structure/Instructions/Instrs/Memory/I64Load32S.php
+++ b/src/Structure/Instructions/Instrs/Memory/I64Load32S.php
@@ -12,7 +12,7 @@ final readonly class I64Load32S extends Instr
* @param U32 $offset
* @param U32 $align
*/
- public function __construct(
+ protected function __construct(
public int $offset,
public int $align,
) {
diff --git a/src/Structure/Instructions/Instrs/Memory/I64Load32U.php b/src/Structure/Instructions/Instrs/Memory/I64Load32U.php
index 6568d25..8561919 100644
--- a/src/Structure/Instructions/Instrs/Memory/I64Load32U.php
+++ b/src/Structure/Instructions/Instrs/Memory/I64Load32U.php
@@ -12,7 +12,7 @@ final readonly class I64Load32U extends Instr
* @param U32 $offset
* @param U32 $align
*/
- public function __construct(
+ protected function __construct(
public int $offset,
public int $align,
) {
diff --git a/src/Structure/Instructions/Instrs/Memory/I64Load8S.php b/src/Structure/Instructions/Instrs/Memory/I64Load8S.php
index 7f4a8ef..3fff762 100644
--- a/src/Structure/Instructions/Instrs/Memory/I64Load8S.php
+++ b/src/Structure/Instructions/Instrs/Memory/I64Load8S.php
@@ -12,7 +12,7 @@ final readonly class I64Load8S extends Instr
* @param U32 $offset
* @param U32 $align
*/
- public function __construct(
+ protected function __construct(
public int $offset,
public int $align,
) {
diff --git a/src/Structure/Instructions/Instrs/Memory/I64Load8U.php b/src/Structure/Instructions/Instrs/Memory/I64Load8U.php
index 1982714..1d12c24 100644
--- a/src/Structure/Instructions/Instrs/Memory/I64Load8U.php
+++ b/src/Structure/Instructions/Instrs/Memory/I64Load8U.php
@@ -12,7 +12,7 @@ final readonly class I64Load8U extends Instr
* @param U32 $offset
* @param U32 $align
*/
- public function __construct(
+ protected function __construct(
public int $offset,
public int $align,
) {
diff --git a/src/Structure/Instructions/Instrs/Memory/I64Store.php b/src/Structure/Instructions/Instrs/Memory/I64Store.php
index 75e0303..db974db 100644
--- a/src/Structure/Instructions/Instrs/Memory/I64Store.php
+++ b/src/Structure/Instructions/Instrs/Memory/I64Store.php
@@ -12,7 +12,7 @@ final readonly class I64Store extends Instr
* @param U32 $offset
* @param U32 $align
*/
- public function __construct(
+ protected function __construct(
public int $offset,
public int $align,
) {
diff --git a/src/Structure/Instructions/Instrs/Memory/I64Store16.php b/src/Structure/Instructions/Instrs/Memory/I64Store16.php
index 66ecec6..4cb48a2 100644
--- a/src/Structure/Instructions/Instrs/Memory/I64Store16.php
+++ b/src/Structure/Instructions/Instrs/Memory/I64Store16.php
@@ -12,7 +12,7 @@ final readonly class I64Store16 extends Instr
* @param U32 $offset
* @param U32 $align
*/
- public function __construct(
+ protected function __construct(
public int $offset,
public int $align,
) {
diff --git a/src/Structure/Instructions/Instrs/Memory/I64Store32.php b/src/Structure/Instructions/Instrs/Memory/I64Store32.php
index 8307efd..4d3e894 100644
--- a/src/Structure/Instructions/Instrs/Memory/I64Store32.php
+++ b/src/Structure/Instructions/Instrs/Memory/I64Store32.php
@@ -12,7 +12,7 @@ final readonly class I64Store32 extends Instr
* @param U32 $offset
* @param U32 $align
*/
- public function __construct(
+ protected function __construct(
public int $offset,
public int $align,
) {
diff --git a/src/Structure/Instructions/Instrs/Memory/I64Store8.php b/src/Structure/Instructions/Instrs/Memory/I64Store8.php
index dd52475..aaac79b 100644
--- a/src/Structure/Instructions/Instrs/Memory/I64Store8.php
+++ b/src/Structure/Instructions/Instrs/Memory/I64Store8.php
@@ -12,7 +12,7 @@ final readonly class I64Store8 extends Instr
* @param U32 $offset
* @param U32 $align
*/
- public function __construct(
+ protected function __construct(
public int $offset,
public int $align,
) {
diff --git a/src/Structure/Instructions/Instrs/Memory/MemoryInit.php b/src/Structure/Instructions/Instrs/Memory/MemoryInit.php
index 72f7ee9..cce52c2 100644
--- a/src/Structure/Instructions/Instrs/Memory/MemoryInit.php
+++ b/src/Structure/Instructions/Instrs/Memory/MemoryInit.php
@@ -9,7 +9,7 @@ use Nsfisis\Waddiwasi\Structure\Types\DataIdx;
final readonly class MemoryInit extends Instr
{
- public function __construct(
+ protected function __construct(
public DataIdx $data,
) {
}
diff --git a/src/Structure/Instructions/Instrs/Numeric/F32Const.php b/src/Structure/Instructions/Instrs/Numeric/F32Const.php
index d9ce335..0b69861 100644
--- a/src/Structure/Instructions/Instrs/Numeric/F32Const.php
+++ b/src/Structure/Instructions/Instrs/Numeric/F32Const.php
@@ -11,7 +11,7 @@ final readonly class F32Const extends Instr
/**
* @param F32 $value
*/
- public function __construct(
+ protected function __construct(
public float $value,
) {
}
diff --git a/src/Structure/Instructions/Instrs/Numeric/F64Const.php b/src/Structure/Instructions/Instrs/Numeric/F64Const.php
index dcfa9e8..540e6f4 100644
--- a/src/Structure/Instructions/Instrs/Numeric/F64Const.php
+++ b/src/Structure/Instructions/Instrs/Numeric/F64Const.php
@@ -11,7 +11,7 @@ final readonly class F64Const extends Instr
/**
* @param F64 $value
*/
- public function __construct(
+ protected function __construct(
public float $value,
) {
}
diff --git a/src/Structure/Instructions/Instrs/Numeric/I32Const.php b/src/Structure/Instructions/Instrs/Numeric/I32Const.php
index 7beaae0..d9f1aea 100644
--- a/src/Structure/Instructions/Instrs/Numeric/I32Const.php
+++ b/src/Structure/Instructions/Instrs/Numeric/I32Const.php
@@ -11,7 +11,7 @@ final readonly class I32Const extends Instr
/**
* @param U32 $value
*/
- public function __construct(
+ protected function __construct(
public int $value,
) {
}
diff --git a/src/Structure/Instructions/Instrs/Numeric/I64Const.php b/src/Structure/Instructions/Instrs/Numeric/I64Const.php
index 59f34f3..59ca0f8 100644
--- a/src/Structure/Instructions/Instrs/Numeric/I64Const.php
+++ b/src/Structure/Instructions/Instrs/Numeric/I64Const.php
@@ -11,7 +11,7 @@ final readonly class I64Const extends Instr
/**
* @param U64 $value
*/
- public function __construct(
+ protected function __construct(
public int $value,
) {
}
diff --git a/src/Structure/Instructions/Instrs/Parametric/Select.php b/src/Structure/Instructions/Instrs/Parametric/Select.php
index 5e5b5ad..dd09ef3 100644
--- a/src/Structure/Instructions/Instrs/Parametric/Select.php
+++ b/src/Structure/Instructions/Instrs/Parametric/Select.php
@@ -12,7 +12,7 @@ final readonly class Select extends Instr
/**
* @param list<ValType> $types
*/
- public function __construct(
+ protected function __construct(
public array $types,
) {
}
diff --git a/src/Structure/Instructions/Instrs/Reference/RefFunc.php b/src/Structure/Instructions/Instrs/Reference/RefFunc.php
index 2849f5f..9924de1 100644
--- a/src/Structure/Instructions/Instrs/Reference/RefFunc.php
+++ b/src/Structure/Instructions/Instrs/Reference/RefFunc.php
@@ -9,7 +9,7 @@ use Nsfisis\Waddiwasi\Structure\Types\FuncIdx;
final readonly class RefFunc extends Instr
{
- public function __construct(
+ protected function __construct(
public FuncIdx $func,
) {
}
diff --git a/src/Structure/Instructions/Instrs/Reference/RefNull.php b/src/Structure/Instructions/Instrs/Reference/RefNull.php
index b3727c6..06e339c 100644
--- a/src/Structure/Instructions/Instrs/Reference/RefNull.php
+++ b/src/Structure/Instructions/Instrs/Reference/RefNull.php
@@ -9,7 +9,7 @@ use Nsfisis\Waddiwasi\Structure\Types\RefType;
final readonly class RefNull extends Instr
{
- public function __construct(
+ protected function __construct(
public RefType $type,
) {
}
diff --git a/src/Structure/Instructions/Instrs/Table/ElemDrop.php b/src/Structure/Instructions/Instrs/Table/ElemDrop.php
index fcaf9ea..5b96fcd 100644
--- a/src/Structure/Instructions/Instrs/Table/ElemDrop.php
+++ b/src/Structure/Instructions/Instrs/Table/ElemDrop.php
@@ -9,7 +9,7 @@ use Nsfisis\Waddiwasi\Structure\Types\ElemIdx;
final readonly class ElemDrop extends Instr
{
- public function __construct(
+ protected function __construct(
public ElemIdx $elem,
) {
}
diff --git a/src/Structure/Instructions/Instrs/Table/TableCopy.php b/src/Structure/Instructions/Instrs/Table/TableCopy.php
index 04a50c8..4c5d008 100644
--- a/src/Structure/Instructions/Instrs/Table/TableCopy.php
+++ b/src/Structure/Instructions/Instrs/Table/TableCopy.php
@@ -9,7 +9,7 @@ use Nsfisis\Waddiwasi\Structure\Types\TableIdx;
final readonly class TableCopy extends Instr
{
- public function __construct(
+ protected function __construct(
public TableIdx $to,
public TableIdx $from,
) {
diff --git a/src/Structure/Instructions/Instrs/Table/TableFill.php b/src/Structure/Instructions/Instrs/Table/TableFill.php
index 4128657..43d1f57 100644
--- a/src/Structure/Instructions/Instrs/Table/TableFill.php
+++ b/src/Structure/Instructions/Instrs/Table/TableFill.php
@@ -9,7 +9,7 @@ use Nsfisis\Waddiwasi\Structure\Types\TableIdx;
final readonly class TableFill extends Instr
{
- public function __construct(
+ protected function __construct(
public TableIdx $table,
) {
}
diff --git a/src/Structure/Instructions/Instrs/Table/TableGet.php b/src/Structure/Instructions/Instrs/Table/TableGet.php
index bc1b35f..77ebf4a 100644
--- a/src/Structure/Instructions/Instrs/Table/TableGet.php
+++ b/src/Structure/Instructions/Instrs/Table/TableGet.php
@@ -9,7 +9,7 @@ use Nsfisis\Waddiwasi\Structure\Types\TableIdx;
final readonly class TableGet extends Instr
{
- public function __construct(
+ protected function __construct(
public TableIdx $table,
) {
}
diff --git a/src/Structure/Instructions/Instrs/Table/TableGrow.php b/src/Structure/Instructions/Instrs/Table/TableGrow.php
index ddd9b2a..2ac222d 100644
--- a/src/Structure/Instructions/Instrs/Table/TableGrow.php
+++ b/src/Structure/Instructions/Instrs/Table/TableGrow.php
@@ -9,7 +9,7 @@ use Nsfisis\Waddiwasi\Structure\Types\TableIdx;
final readonly class TableGrow extends Instr
{
- public function __construct(
+ protected function __construct(
public TableIdx $table,
) {
}
diff --git a/src/Structure/Instructions/Instrs/Table/TableInit.php b/src/Structure/Instructions/Instrs/Table/TableInit.php
index d4666ae..7617809 100644
--- a/src/Structure/Instructions/Instrs/Table/TableInit.php
+++ b/src/Structure/Instructions/Instrs/Table/TableInit.php
@@ -10,7 +10,7 @@ use Nsfisis\Waddiwasi\Structure\Types\TableIdx;
final readonly class TableInit extends Instr
{
- public function __construct(
+ protected function __construct(
public TableIdx $to,
public ElemIdx $from,
) {
diff --git a/src/Structure/Instructions/Instrs/Table/TableSet.php b/src/Structure/Instructions/Instrs/Table/TableSet.php
index 8aaf11e..7ac7c8e 100644
--- a/src/Structure/Instructions/Instrs/Table/TableSet.php
+++ b/src/Structure/Instructions/Instrs/Table/TableSet.php
@@ -9,7 +9,7 @@ use Nsfisis\Waddiwasi\Structure\Types\TableIdx;
final readonly class TableSet extends Instr
{
- public function __construct(
+ protected function __construct(
public TableIdx $table,
) {
}
diff --git a/src/Structure/Instructions/Instrs/Table/TableSize.php b/src/Structure/Instructions/Instrs/Table/TableSize.php
index 00200a6..1c63e34 100644
--- a/src/Structure/Instructions/Instrs/Table/TableSize.php
+++ b/src/Structure/Instructions/Instrs/Table/TableSize.php
@@ -9,7 +9,7 @@ use Nsfisis\Waddiwasi\Structure\Types\TableIdx;
final readonly class TableSize extends Instr
{
- public function __construct(
+ protected function __construct(
public TableIdx $table,
) {
}
diff --git a/src/Structure/Instructions/Instrs/Variable/GlobalGet.php b/src/Structure/Instructions/Instrs/Variable/GlobalGet.php
index 7d25650..a3bd2c6 100644
--- a/src/Structure/Instructions/Instrs/Variable/GlobalGet.php
+++ b/src/Structure/Instructions/Instrs/Variable/GlobalGet.php
@@ -9,7 +9,7 @@ use Nsfisis\Waddiwasi\Structure\Types\GlobalIdx;
final readonly class GlobalGet extends Instr
{
- public function __construct(
+ protected function __construct(
public GlobalIdx $var,
) {
}
diff --git a/src/Structure/Instructions/Instrs/Variable/GlobalSet.php b/src/Structure/Instructions/Instrs/Variable/GlobalSet.php
index 2f32855..080e15a 100644
--- a/src/Structure/Instructions/Instrs/Variable/GlobalSet.php
+++ b/src/Structure/Instructions/Instrs/Variable/GlobalSet.php
@@ -9,7 +9,7 @@ use Nsfisis\Waddiwasi\Structure\Types\GlobalIdx;
final readonly class GlobalSet extends Instr
{
- public function __construct(
+ protected function __construct(
public GlobalIdx $var,
) {
}
diff --git a/src/Structure/Instructions/Instrs/Variable/LocalGet.php b/src/Structure/Instructions/Instrs/Variable/LocalGet.php
index 4c4f794..bc764c2 100644
--- a/src/Structure/Instructions/Instrs/Variable/LocalGet.php
+++ b/src/Structure/Instructions/Instrs/Variable/LocalGet.php
@@ -9,7 +9,7 @@ use Nsfisis\Waddiwasi\Structure\Types\LocalIdx;
final readonly class LocalGet extends Instr
{
- public function __construct(
+ protected function __construct(
public LocalIdx $var,
) {
}
diff --git a/src/Structure/Instructions/Instrs/Variable/LocalSet.php b/src/Structure/Instructions/Instrs/Variable/LocalSet.php
index d103c22..9b107e8 100644
--- a/src/Structure/Instructions/Instrs/Variable/LocalSet.php
+++ b/src/Structure/Instructions/Instrs/Variable/LocalSet.php
@@ -9,7 +9,7 @@ use Nsfisis\Waddiwasi\Structure\Types\LocalIdx;
final readonly class LocalSet extends Instr
{
- public function __construct(
+ protected function __construct(
public LocalIdx $var,
) {
}
diff --git a/src/Structure/Instructions/Instrs/Variable/LocalTee.php b/src/Structure/Instructions/Instrs/Variable/LocalTee.php
index 89e253b..3e48e8e 100644
--- a/src/Structure/Instructions/Instrs/Variable/LocalTee.php
+++ b/src/Structure/Instructions/Instrs/Variable/LocalTee.php
@@ -9,7 +9,7 @@ use Nsfisis\Waddiwasi\Structure\Types\LocalIdx;
final readonly class LocalTee extends Instr
{
- public function __construct(
+ protected function __construct(
public LocalIdx $var,
) {
}