Def.report: def of bend-lint-pack@0.1.1.0 Import: import bend-lint-pack@0.1.1.0/dead/def.bend as Def Lines 97-127 of bend-lint-pack@0.1.1.0/dead/def.bend: https://jend.leeeet.dev/read.txt?path=bend-lint-pack@0.1.1.0/dead/def.bend&start_line=97&end_line=127 import Base import bend-lint-pack@0.1.1.0/vendor/lint.bend as Lint import bend-lint-pack@0.1.1.0/common.bend as Common def report( seen: List<&2, Common.Seen>, +nodes: Set(), +reached: Set(), +into: Map<&2, List<&2, String>>, out: List<&2, Lint.Diag> ) -> List<&2, Lint.Diag>: match seen: case Nil{}: out case Con{Common.Seen{+owner, span}, rest}: report( rest, nodes, reached, into, Common.onto( Common.when( is_dead(nodes, reached, owner), Common.diag( Lint.Warning{}, message( owner, Bool.not(List.is_empty(&2, String, Common.Edges.of(into, owner))) ), span ) ), out ) ) Uses (15): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool.not https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List.is_empty https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Map https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Set https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=bend-lint-pack@0.1.1.0/common.bend&name=Edges.of https://jend.leeeet.dev/definition.txt?path=bend-lint-pack@0.1.1.0/common.bend&name=Seen https://jend.leeeet.dev/definition.txt?path=bend-lint-pack@0.1.1.0/common.bend&name=diag https://jend.leeeet.dev/definition.txt?path=bend-lint-pack@0.1.1.0/common.bend&name=onto https://jend.leeeet.dev/definition.txt?path=bend-lint-pack@0.1.1.0/common.bend&name=when https://jend.leeeet.dev/definition.txt?path=bend-lint-pack@0.1.1.0/dead/def.bend&name=is_dead https://jend.leeeet.dev/definition.txt?path=bend-lint-pack@0.1.1.0/dead/def.bend&name=message https://jend.leeeet.dev/definition.txt?path=bend-lint-pack@0.1.1.0/vendor/lint.bend&name=Diag https://jend.leeeet.dev/definition.txt?path=bend-lint-pack@0.1.1.0/vendor/lint.bend&name=Severity