def AaRule.check_names.go

bend-osdev-apparmor@0.1.0.0 · rule.bend:81

import bend-osdev-apparmor@0.1.0.0/rule.bend as Rule
import Base
import bend-osdev-apparmor@0.1.0.0/error.bend as E

81# the names of a value, each one of the allowed names
82def AaRule.check_names.go(hit: Bool, x: List<&2, U32>, r: Result<&2, &2, E.AaError, List<&2, List<&2, U32>>>, src: E.AaSrc) -> Result<&2, &2, E.AaError, List<&2, List<&2, U32>>>:
83  match hit:
84    case False{}:
85      Fail{E.AaSrc.name(src)}
86    case True{}:
87      match r:
88        case Fail{e}:
89          Fail{e}
90        case Done{xs}:
91          Done{Con{x, xs}}

Uses (7)

Used by (2)