def AmlOutcome.of_run

bend-osdev-acpi@0.1.1.0 · aml.bend:109

import bend-osdev-acpi@0.1.1.0/aml.bend as Aml
import Base
import bend-osdev-acpi@0.1.1.0/aml_interp.bend as I

109# what a run came to
110def AmlOutcome.of_run(-H: Data, r: I.AmlRun<H>) -> AmlOutcome<H>:
111  match r:
112    case I.AmlRun{I.AmlMachine{md, c, fs, I.AmlWorld{ctx, ns, h, I.AmlEnv{wd, o, nts, d, cl}}}, s}:
113      AmlOutcome{aml.result(md), ns, h, s, aml.rev.n(nts, Nil{}), aml.rev.v(d, Nil{})}

Uses (9)

Used by (3)