DirectiveOrder.Runs.extend: 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 94-118 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=94&end_line=118 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.extend( continues: Bool, run: Run, comment: Directives.Comment, +key: String, path: String, out: List<&2, Lint.Finding> ) -> Runs: match continues run comment: case True{} Run{beg, end, line, last, sorted, slots} Directives.Comment{b, +e, l, t, body}: Runs{ Some{ Run{ beg, e, l, key, sorted && String.is_le(last, key), Slot{key, b, e, "#" ++ body} <> slots } }, out } case False{} _ Directives.Comment{b, e, l, t, body}: Runs{Some{Run.first(key, b, e, l, body)}, Runs.close(Some{run}, path, out)} Uses (14): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool.and https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List 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=Base/base.bend&name=String.append https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String.is_le 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=Run https://jend.leeeet.dev/definition.txt?path=bend-lint-rules@0.2.0.0/layout/directive_order.bend&name=Run.first 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=Slot https://jend.leeeet.dev/definition.txt?path=bend-lint-rules@0.2.0.0/lib/linter/directives.bend&name=Comment