def Whole.of
import bend-lint-api@0.2.0.0/linter/lint.bend as Lintimport Base
1076# The whole program, built once for every program rule: the declarations of its own files, if a rule needs them
1077# (`declare`).
1078def Whole.of(program: Program, declare: Bool) -> Whole:
1079 match program:
1080 case Program{sources}:
1081 +own = Program.own(sources)
1082 Whole{Program{own}, Declarations.when(declare, own, own), []}
Uses (6)
Used by (0)
No other definition uses this definition.