def Whole.of

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

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