def written
import bend-lint-rules@0.2.0.0/performance/template_value_field.bend as TemplateValueFieldimport Base
import bend-lint-api@0.2.0.0/linter/lint.bend as Lint
74# The datatype a type's nodes write, by the name the check gives it, or "" for another form (a function, a sort).
75def written(nodes: List<&2, Lint.Node>) -> String:
76 match nodes:
77 case Con{Lint.Node{Lint.Reference{t}, n, s, k, f}, rest}:
78 t
79 case Con{Lint.Node{Lint.TypeApplication{t}, n, s, k, f}, rest}:
80 t
81 case _:
82 ""