def report
import bolt@1.27.0.0/src/rules/pedantic/rewalk.bend as Rewalkimport Base
import bolt@1.27.0.0/src/finding.bend as F
857# the first narrow site of each duplicated call
858def report(rs: List<&2, Rated>, +all: List<&2, Rated>, +path: String, +seen: List<&2, Rated>) -> List<&2, F.Finding>:
859 match rs:
860 case Nil{}:
861 Nil{}
862 case Con{+r, rest}:
863 +mine = report_one(r, all, path, seen)
864 List.append(&2, F.Finding, mine, report(rest, all, path, r <> seen))