def run

bend-lint-pack@0.1.1.0 · graph/fan_out.bend:55

import bend-lint-pack@0.1.1.0/graph/fan_out.bend as FanOut
import Base
import bend-lint-pack@0.1.1.0/vendor/lint.bend as Lint
import bend-lint-pack@0.1.1.0/common.bend as Common

55def run(input: Lint.Input) -> IO(List<&2, Lint.Diag>):
56  match input:
57    case Lint.Input{+sources, +options}:
58      do IO<List<&2, Lint.Diag>>:
59        g : Common.Graph <- Lint.fold_facts(~Common.Graph, ~Common.Graph.collect, Common.Graph.empty())
60        p : Common.Prog <- Common.Prog.of(sources, g)
61        return verdict(p, Lint.option_number(options, "max", 10), Common.Scope.of(sources, options))

Uses (15)

Used by (1)