def Node.target
import bend-lint-api@0.2.0.0/linter/lint.bend as Lintimport Base
219# "" for a node of a kind that names nothing.
220def Node.target(node: Node) -> String:
221 match node:
222 case Node{syntax, name, span, kids, facts}:
223 Maybe.default(&2, String, Syntax.target(syntax), "")