def Node.scrutinees.go
import bend-lint-api@0.2.0.0/linter/lint.bend as Lintimport Base
265def Node.scrutinees.go(nodes: List<&2, Node>, out: List<&2, Node>) -> List<&2, Node>:
266 match nodes:
267 case Con{Node{Case{}, n, s, k, f}, rest}:
268 List.reverse(&2, Node, out)
269 case Con{node, rest}:
270 Node.scrutinees.go(rest, node <> out)
271 case Nil{}:
272 List.reverse(&2, Node, out)