def Node.target

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

import bend-lint-api@0.2.0.0/linter/lint.bend as Lint
import 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), "")

Uses (4)

Used by (2)