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

declare(strict_types=1);

namespace Nsfisis\Waddiwasi\WebAssembly\Structure\Modules;

use Nsfisis\Waddiwasi\WebAssembly\Structure\Instructions\Instr;
use Nsfisis\Waddiwasi\WebAssembly\Structure\Types\GlobalType;

final readonly class Global_
{
    /**
     * @param list<Instr> $init
     */
    public function __construct(
        public GlobalType $type,
        public array $init,
    ) {
    }
}