DirectiveOrder.Runs.go: def of bend-lint-rules@0.2.0.0 Import: import bend-lint-rules@0.2.0.0/layout/directive_order.bend as DirectiveOrder Lines 144-162 of bend-lint-rules@0.2.0.0/layout/directive_order.bend: https://jend.leeeet.dev/read.txt?path=bend-lint-rules@0.2.0.0/layout/directive_order.bend&start_line=144&end_line=162 import Base import bend-lint-rules@0.2.0.0/lib/linter/directives.bend as Directives import bend-lint-api@0.2.0.0/linter/lint.bend as Lint def Runs.go( comments: List<&2, Directives.Comment>, +path: String, runs: Runs ) -> List<&2, Lint.Finding>: match comments runs: case Nil{} Runs{open, out}: List.reverse(&2, Lint.Finding, Runs.close(open, path, out)) case Con{Directives.Comment{b, e, l, t, +body}, rest} _: Runs.go( rest, path, Runs.step( key(Directives.Draft.read(body)), Directives.Comment{b, e, l, t, body}, path, runs ) ) 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=String 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-rules@0.2.0.0/layout/directive_order.bend&name=Runs https://jend.leeeet.dev/definition.txt?path=bend-lint-rules@0.2.0.0/layout/directive_order.bend&name=Runs.close https://jend.leeeet.dev/definition.txt?path=bend-lint-rules@0.2.0.0/layout/directive_order.bend&name=Runs.step https://jend.leeeet.dev/definition.txt?path=bend-lint-rules@0.2.0.0/layout/directive_order.bend&name=key https://jend.leeeet.dev/definition.txt?path=bend-lint-rules@0.2.0.0/lib/linter/directives.bend&name=Comment https://jend.leeeet.dev/definition.txt?path=bend-lint-rules@0.2.0.0/lib/linter/directives.bend&name=Draft.read