aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Execution/Extern.php
blob: e0b695e031bb13e1de55d95d50f58ddd98ed704e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?php

declare(strict_types=1);

namespace Nsfisis\Waddiwasi\Execution;

abstract readonly class Extern
{
    final public static function Func(FuncInst $func): Externs\Func
    {
        return new Externs\Func($func);
    }

    final public static function Table(TableInst $table): Externs\Table
    {
        return new Externs\Table($table);
    }

    final public static function Mem(MemInst $mem): Externs\Mem
    {
        return new Externs\Mem($mem);
    }

    final public static function Global_(GlobalInst $global): Externs\Global_
    {
        return new Externs\Global_($global);
    }
}