GpuFit.slots: def of bend-lint-rules@0.2.0.0 Import: import bend-lint-rules@0.2.0.0/performance/gpu_fit.bend as GpuFit Lines 47-59 of bend-lint-rules@0.2.0.0/performance/gpu_fit.bend: https://jend.leeeet.dev/read.txt?path=bend-lint-rules@0.2.0.0/performance/gpu_fit.bend&start_line=47&end_line=59 import Base import bend-lint-api@0.2.0.0/linter/lint.bend as Lint # The fields of the datatypes among `nodes` and under them (of `current`, the datatype they are under), onto `out`. def slots(nodes: List<&2, Lint.Node>, +current: String, out: List<&2, Slot>) -> List<&2, Slot>: match nodes: case Nil{}: out case Con{Lint.Node{Lint.Datatype{t}, n, s, kids, f}, rest}: slots(rest, current, slots(kids, t, out)) case Con{Lint.Node{Lint.Constructor{t}, n, s, kids, f}, rest}: slots(rest, current, slots(kids, current, out)) case Con{Lint.Node{Lint.Field{b, q}, n, s, kids, f}, rest}: slots(rest, current, Slot{current, Lint.type_name(kids)} <> out) case Con{node, rest}: slots(rest, current, 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=String 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 https://jend.leeeet.dev/definition.txt?path=bend-lint-api@0.2.0.0/linter/lint.bend&name=type_name https://jend.leeeet.dev/definition.txt?path=bend-lint-rules@0.2.0.0/performance/gpu_fit.bend&name=Slot