TemplateValueField.defs: def of bend-lint-rules@0.2.0.0 Import: import bend-lint-rules@0.2.0.0/performance/template_value_field.bend as TemplateValueField Lines 141-168 of bend-lint-rules@0.2.0.0/performance/template_value_field.bend: https://jend.leeeet.dev/read.txt?path=bend-lint-rules@0.2.0.0/performance/template_value_field.bend&start_line=141&end_line=168 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 findings in the definitions among `nodes` that have templates of `records`, onto `out` (last first). def defs( nodes: List<&2, Lint.Node>, +records: List<&2, String>, out: List<&2, Lint.Finding> ) -> List<&2, Lint.Finding>: match nodes: case Nil{}: out case Con{Lint.Node{Lint.Definition{t, u}, +n, s, +kids, f}, rest}: defs( rest, records, Lists.onto( &2, Lint.Finding, Lint.visit( ~Owner, ~Lint.Finding, ~visit, Owner{templates(kids, records, []), n}, [Lint.Node{Lint.Definition{t, u}, n, s, kids, f}] ), out ) ) case Con{node, rest}: defs(rest, records, out) 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=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-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=visit https://jend.leeeet.dev/definition.txt?path=bend-lint-api@0.2.0.0/shared/lists.bend&name=onto https://jend.leeeet.dev/definition.txt?path=bend-lint-rules@0.2.0.0/performance/template_value_field.bend&name=Owner https://jend.leeeet.dev/definition.txt?path=bend-lint-rules@0.2.0.0/performance/template_value_field.bend&name=templates https://jend.leeeet.dev/definition.txt?path=bend-lint-rules@0.2.0.0/performance/template_value_field.bend&name=visit