diff options
| author | nsfisis <nsfisis@gmail.com> | 2024-03-15 19:02:22 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2024-03-15 19:02:22 +0900 |
| commit | 9b45796547c8022b98a9254320323d72aecd81cb (patch) | |
| tree | 5aaf49a070859ff4c226c4efef5de0174d51d36d /src/Structure/Modules/ElemMode.php | |
| parent | b2f2bbf72d7c5009f56f15fa972957ea399ad221 (diff) | |
| download | php-waddiwasi-9b45796547c8022b98a9254320323d72aecd81cb.tar.gz php-waddiwasi-9b45796547c8022b98a9254320323d72aecd81cb.tar.zst php-waddiwasi-9b45796547c8022b98a9254320323d72aecd81cb.zip | |
refactor: remove Expr class
Diffstat (limited to 'src/Structure/Modules/ElemMode.php')
| -rw-r--r-- | src/Structure/Modules/ElemMode.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/Structure/Modules/ElemMode.php b/src/Structure/Modules/ElemMode.php index 051a7e1..e3e7693 100644 --- a/src/Structure/Modules/ElemMode.php +++ b/src/Structure/Modules/ElemMode.php @@ -4,7 +4,7 @@ declare(strict_types=1); namespace Nsfisis\Waddiwasi\Structure\Modules; -use Nsfisis\Waddiwasi\Structure\Instructions\Expr; +use Nsfisis\Waddiwasi\Structure\Instructions\Instr; abstract readonly class ElemMode { @@ -13,9 +13,12 @@ abstract readonly class ElemMode return new ElemModes\Passive(); } + /** + * @param list<Instr> $offset + */ final public static function Active( int $table, - Expr $offset, + array $offset, ): ElemModes\Active { return new ElemModes\Active($table, $offset); } |
