def cut.go
import bend-lint-rules@0.2.0.0/layout/format.bend as Formatimport Base
2097def cut.go(xs: List<&2, Tree>, c: Cut) -> Cut:
2098 match xs c:
2099 case Nil{} Cut{before, after, found}:
2100 Cut{List.reverse(&2, Tree, before), List.reverse(&2, Tree, after), found}
2101 case Con{n, rest} c2:
2102 cut.go(rest, cut.step(n, c2))