def Imported.own

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

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

623# The global names a file's own top-level declarations declare, as a set.
624def Imported.own(nodes: List<&2, Node>, out: Set()) -> Set():
625  match nodes:
626    case Nil{}:
627      out
628    case Con{Node{syntax, n, s, k, f}, rest}:
629      Imported.own(rest, Imported.own.add(Syntax.target(syntax), out))

Uses (5)

Used by (1)