Feature.visibility: def of bendvy-ecs-core@0.1.0.3 Import: import bendvy-ecs-core@0.1.0.3/feature.bend as Feature Lines 49-55 of bendvy-ecs-core@0.1.0.3/feature.bend: https://jend.leeeet.dev/read.txt?path=bendvy-ecs-core@0.1.0.3/feature.bend&start_line=49&end_line=55 import Base import bendvy-ecs-core@0.1.0.3/schema_fragments.bend as SF # Collect own and referenced dependency entries recursively for visibility # description. This does not select/build dependencies or validate composition. def visibility(~S:Data,tree:Tree) -> List<&2,SF.Entry>: match tree: case Empty{}: [] case Feature{_,own,dependencies}: List.append(&2,SF.Entry,own,visibility(~S,dependencies)) case Sequence{left,right}: List.append(&2,SF.Entry,visibility(~S,left),visibility(~S,right)) Uses (4): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List.append https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.3/feature.bend&name=Tree https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.3/schema_fragments.bend&name=Entry