def Declarations.globals
import bend-lint-api@0.2.0.0/linter/lint.bend as Lintimport Base
802def Declarations.globals(
803 files: List<&2, Source>,
804 m: Map<&2, List<&2, Node>>
805) -> Map<&2, List<&2, Node>>:
806 match files:
807 case Nil{}:
808 m
809 case Con{Source{path, namespace, text, nodes}, rest}:
810 Declarations.globals(
811 rest,
812 fold(~Unit, ~Map<&2, List<&2, Node>>, ~Uses.global, Unit{}, nodes, m)
813 )