def let.forks

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

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

66# Whether the let of `kids` forks before the rest of its block, if the node is in it (`last`): it is a parallel let
67# (`parallel`), or a value of it forks.
68def let.forks(last: Bool, parallel: Bool, kids: List<&2, Lint.Node>, program: Program) -> Bool:
69  match last parallel:
70    case False{} _:
71      False{}
72    case True{} True{}:
73      True{}
74    case True{} False{}:
75      forks(let.values(kids), program)

Uses (6)

Used by (1)