GpuFit.data: 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 140-156 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=140&end_line=156 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 # The first parameter of `params` that is data, if one is. def data( params: List<&2, Lint.Param>, found: Maybe<&2, Lint.Param>, +slots: List<&2, Slot> ) -> Maybe<&2, Lint.Param>: match params found: case _ Some{param}: Some{param} case Nil{} None{}: None{} case Con{Lint.Param{n, +ty}, rest} None{}: data( rest, Lists.when(Lint.Param, Bool.not(is_flat(64n, Some{[ty]}, slots)), Lint.Param{n, ty}), slots ) Uses (7): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool.not 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=bend-lint-api@0.2.0.0/linter/lint.bend&name=Param https://jend.leeeet.dev/definition.txt?path=bend-lint-api@0.2.0.0/shared/lists.bend&name=when https://jend.leeeet.dev/definition.txt?path=bend-lint-rules@0.2.0.0/performance/gpu_fit.bend&name=Slot https://jend.leeeet.dev/definition.txt?path=bend-lint-rules@0.2.0.0/performance/gpu_fit.bend&name=is_flat