Parse.AaFrames.add_rules: def of bend-osdev-apparmor@0.1.0.0 Import: import bend-osdev-apparmor@0.1.0.0/parse.bend as Parse Lines 1587-1599 of bend-osdev-apparmor@0.1.0.0/parse.bend: https://jend.leeeet.dev/read.txt?path=bend-osdev-apparmor@0.1.0.0/parse.bend&start_line=1587&end_line=1599 import Base import bend-osdev-apparmor@0.1.0.0/profile.bend as PR # the rules added to the innermost profile def AaFrames.add_rules(fs: List<&2, AaFrame>, rs: PR.AaRules) -> List<&2, AaFrame>: match fs: case Nil{}: Nil{} case Con{f, t}: match f: case AaFrame{p, h, full, q, s}: match p: case None{}: Con{AaFrame{None{}, h, full, q, s}, AaFrames.add_rules(t, rs)} case Some{x}: Con{AaFrame{Some{PR.AaProfile.prepend(x, rs)}, h, full, q, s}, t} Uses (5): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Maybe https://jend.leeeet.dev/definition.txt?path=bend-osdev-apparmor@0.1.0.0/parse.bend&name=AaFrame https://jend.leeeet.dev/definition.txt?path=bend-osdev-apparmor@0.1.0.0/profile.bend&name=AaProfile.prepend https://jend.leeeet.dev/definition.txt?path=bend-osdev-apparmor@0.1.0.0/profile.bend&name=AaRules