def written

bend-lint-rules@0.2.0.0 · performance/template_value_field.bend:74

import bend-lint-rules@0.2.0.0/performance/template_value_field.bend as TemplateValueField
import 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      ""

Uses (4)

Used by (1)