def after.if

bend-lint-rules@0.2.0.0 · performance/bang_after_fork.bend:100

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

100# Whether a fork runs before a call with `args` below `path`, in the same evaluation, if it is `asked`: an argument
101# forks, or a let above it does.
102def after.if(
103  asked: Bool,
104  args: List<&2, Lint.Node>,
105  path: List<&2, Lint.Above>,
106  +program: Program
107) -> Bool:
108  match asked:
109    case True{}:
110      after(path, program, forks(args, program))
111    case False{}:
112      False{}

Uses (7)

Used by (1)