def Imported.own
import bend-lint-api@0.2.0.0/linter/lint.bend as Lintimport 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))