def mod_one
import bolt@1.27.0.0/src/rules/table.bend as Tableimport Base
import bolt@1.27.0.0/src/syntax/tree.bend as Tree
205# a def whose body is one fixed table
206def mod_one(body: Tree.Node, +name: String, +acc: List<&2, String>) -> List<&2, String>:
207 match body:
208 case Tree.NCons{Tree.Stmt{kind, +kids, inn}, Tree.NNil{}}:
209 Bool.pick(List<&2, String>, built(kids), name <> acc, acc)
210 case other:
211 acc