def in.method.op
import bend-osdev-acpi@0.1.1.0/aml_interp.bend as AmlInterpimport Base
import bend-osdev-acpi@0.1.1.0/error.bend as E
2261# Method (chapter 19): defined, its body kept for when it is called
2262def in.method.op(-H: Data, r: Result<&2, &2, E.AcpiError, AmlPkgC>, fs: List<&2, AmlFrame>, +w: AmlWorld<H>) -> AmlMachine<H>:
2263 match r:
2264 case Fail{e}:
2265 AmlMachine{AmlMFail{e}, in.no.cur(), fs, w}
2266 case Done{AmlPkgC{body, after}}:
2267 in.method.k(H, cur.name(body), after, fs, w)