def type_name

bend-lint-api@0.2.0.0 · linter/lint.bend:861

import bend-lint-api@0.2.0.0/linter/lint.bend as Lint
import Base

861# The type the first of `nodes` writes, as one name, or "" for another form (an application, a list).
862def type_name(nodes: List<&2, Node>) -> String:
863  match nodes:
864    case Con{Node{Reference{t}, n, s, k, f}, rest}:
865      t
866    case _:
867      ""

Uses (4)

Used by (3)