def val.ref.show

bend-osdev-acpi@0.1.1.0 · aml_value.bend:349

import bend-osdev-acpi@0.1.1.0/aml_value.bend as AmlValue
import Base

349def val.ref.show(l: AmlLoc) -> String:
350  match l:
351    case AmlLName{p}:
352      "ref " ++ p
353    case AmlLLocal{i}:
354      "ref Local" ++ Nat.show(i)
355    case AmlLArg{i}:
356      "ref Arg" ++ Nat.show(i)
357    case AmlLIndex{b, i}:
358      "ref index " ++ Nat.show(i)
359    case AmlLElem{v, i}:
360      "ref element " ++ Nat.show(i)
361    case AmlLDebug{}:
362      "ref Debug"
363    case AmlLNone{}:
364      "ref none"

Uses (4)

Used by (1)