def scanned
bend-lint-rules@0.2.0.0 · performance/bang_after_fork.bend:153
import bend-lint-rules@0.2.0.0/performance/bang_after_fork.bend as BangAfterFork
import Base
import bend-lint-api@0.2.0.0/linter/lint.bend as Lint
import bend-lint-rules@0.2.0.0/performance/gpu_fit.bend as GpuFit
153
154def scanned(+here: Lint.Here, bangs: List<&2, U32>) -> Lint.Ask(List<&2, Lint.Finding>):
155 match bangs:
156 case Nil{}:
157 Lint.done([])
158 case Con{b, rest}:
159 +sources = Lint.Here.sources(here)
160 +defs = Lint.Program.defs(sources, Map.new(&2, Maybe<&2, Lint.Def>))
161 Lint.done(
162 Lint.visit(
163 ~Program,
164 ~Lint.Finding,
165 ~visit,
166 Program{defs, GpuFit.program.under(sources, defs), Con{b, rest}},
167 Lint.Here.nodes(here)
168 )
169 )