DirectiveOrder.Slot.order: 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 54-65 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=54&end_line=65 import Base import bend-lint-api@0.2.0.0/linter/lint.bend as Lint # The edits that write the directives of `sorted` into the places of `slots` (both in order), onto `out`. def Slot.order( slots: List<&2, Slot>, sorted: List<&2, Slot>, +path: String, out: List<&2, Lint.Operation> ) -> List<&2, Lint.Operation>: match slots sorted: case Con{Slot{k, beg, end, t}, rest} Con{Slot{j, b, e, text}, more}: Slot.order(rest, more, path, Lint.Replace{Lint.Span{path, beg, end}, text} <> out) case _ _: List.reverse(&2, Lint.Operation, out) Uses (6): 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=Operation https://jend.leeeet.dev/definition.txt?path=bend-lint-api@0.2.0.0/linter/lint.bend&name=Span https://jend.leeeet.dev/definition.txt?path=bend-lint-rules@0.2.0.0/layout/directive_order.bend&name=Slot