Case.ends: def of bend-lint-rules@0.2.0.0 Import: import bend-lint-rules@0.2.0.0/layout/case.bend as Case Lines 149-161 of bend-lint-rules@0.2.0.0/layout/case.bend: https://jend.leeeet.dev/read.txt?path=bend-lint-rules@0.2.0.0/layout/case.bend&start_line=149&end_line=161 import Base import bend-lint-api@0.2.0.0/linter/lint.bend as Lint # Whether the type the last of `nodes` writes ends in a sort: it is one, or a function type whose result does. def ends(nodes: List<&2, Lint.Node>) -> Bool: match nodes: case Con{Lint.Node{Lint.Sort{}, n, s, k, f}, Nil{}}: True{} case Con{Lint.Node{Lint.Forall{b, q}, n, s, kids, f}, Nil{}}: ends(kids) case Con{x, Nil{}}: False{} case Con{x, rest}: ends(rest) case Nil{}: False{} Uses (4): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=bend-lint-api@0.2.0.0/linter/lint.bend&name=Node https://jend.leeeet.dev/definition.txt?path=bend-lint-api@0.2.0.0/linter/lint.bend&name=Syntax