def types
import bend-lint-rules@0.2.0.0/performance/unused_result.bend as UnusedResultimport Base
import bend-lint-api@0.2.0.0/linter/lint.bend as Lint
148def types(found: List<&2, Unused>, out: List<&2, Lint.TypeRef>) -> List<&2, Lint.TypeRef>:
149 match found:
150 case Nil{}:
151 List.reverse(&2, Lint.TypeRef, out)
152 case Con{Unused{s, n, l, t}, rest}:
153 types(rest, t <> out)