aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Structure/Modules/Func.php
blob: 7c76b5eec75b685bd36f733ffdc5869bfde6b3d3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<?php

declare(strict_types=1);

namespace Nsfisis\Waddiwasi\Structure\Modules;

use Nsfisis\Waddiwasi\Structure\Instructions\Instr;

final readonly class Func
{
    /**
     * @param list<Local> $locals
     * @param list<Instr> $body
     */
    public function __construct(
        public int $type,
        public array $locals,
        public array $body,
    ) {
    }
}