LifetimeScope.cleanup_members: def of bendvy-ecs-core@0.1.0.4 Import: import bendvy-ecs-core@0.1.0.4/lifetime_scope.bend as LifetimeScope Lines 55-58 of bendvy-ecs-core@0.1.0.4/lifetime_scope.bend: https://jend.leeeet.dev/read.txt?path=bendvy-ecs-core@0.1.0.4/lifetime_scope.bend&start_line=55&end_line=58 import Base import entity_key.bend as Key import bendvy-ecs-core@0.1.0.4/world.bend as W import bendvy-ecs-core@0.1.0.4/relation_commands.bend as A import bendvy-ecs-core@0.1.0.4/relation_types.bend as G import bendvy-ecs-core@0.1.0.4/relation_cleanup.bend as Cleanup def cleanup_members(~S:Data,~C:Type,~R:Type,~E:Data,~clear:C -> W.Handle -> C & List<&2,A.Notice>,~record:W.Handle -> A.Notice,~descriptors:List<&2,G.Descriptor>,members:List<&2,Key.Key>,world:W.World>,R,A.Notice>,+namespace:U32) -> W.World>,R,A.Notice>: match members: case []:world case id <> rest:cleanup_members(~S,~C,~R,~E,~clear,~record,~descriptors,rest,cleanup_result(~S,~C,~R,~E,Cleanup.automatic(~S,~Store,~R,~E,~clear_components(~S,~C,~E,~clear),~record,world,W.Handle{namespace,id},descriptors)),namespace) Uses (13): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Pair https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.4/entity_key.bend&name=Key https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.4/lifetime_scope.bend&name=Store https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.4/lifetime_scope.bend&name=cleanup_result https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.4/lifetime_scope.bend&name=clear_components https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.4/relation_cleanup.bend&name=automatic https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.4/relation_commands.bend&name=Notice https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.4/relation_commands.bend&name=Store https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.4/relation_types.bend&name=Descriptor https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.4/world.bend&name=Handle https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.4/world.bend&name=World