def in.scope.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
2239# Scope (chapter 19): the term list runs in the named scope
2240def in.scope.op(-H: Data, r: Result<&2, &2, E.AcpiError, AmlPkgC>, fs: List<&2, AmlFrame>, +w: AmlWorld<H>) -> AmlMachine<H>:
2241 match r:
2242 case Fail{e}:
2243 AmlMachine{AmlMFail{e}, in.no.cur(), fs, w}
2244 case Done{AmlPkgC{body, after}}:
2245 in.scope.k(H, cur.name(body), after, fs, w)