Case.judge: def of bend-lint-rules@0.2.0.0 Import: import bend-lint-rules@0.2.0.0/layout/case.bend as Case Lines 304-329 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=304&end_line=329 import Base import bend-lint-api@0.2.0.0/linter/lint.bend as Lint import bend-lint-api@0.2.0.0/shared/lists.bend as Lists def judge( +namespace: String, declarations: List<&2, Lint.Declaration>, out: List<&2, Lint.Finding> ) -> List<&2, Lint.Finding>: match declarations: case Nil{}: List.reverse(&2, Lint.Finding, out) case Con{Lint.Declaration{Lint.Node{+syntax, +name, Some{+span}, kids, facts}, uses}, rest}: judge( namespace, rest, Lists.onto( &2, Lint.Finding, judged( wanted(Lint.Node{syntax, name, Some{span}, kids, facts}, namespace), syntax, name, span ), out ) ) case Con{d, rest}: judge(namespace, rest, out) Uses (10): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List.reverse https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Maybe https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=bend-lint-api@0.2.0.0/linter/lint.bend&name=Declaration https://jend.leeeet.dev/definition.txt?path=bend-lint-api@0.2.0.0/linter/lint.bend&name=Finding 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/shared/lists.bend&name=onto https://jend.leeeet.dev/definition.txt?path=bend-lint-rules@0.2.0.0/layout/case.bend&name=judged https://jend.leeeet.dev/definition.txt?path=bend-lint-rules@0.2.0.0/layout/case.bend&name=wanted