DeepCallInFork.deep.if: def of bend-lint-rules@0.2.0.0 Import: import bend-lint-rules@0.2.0.0/performance/deep_call_in_fork.bend as DeepCallInFork Lines 64-73 of bend-lint-rules@0.2.0.0/performance/deep_call_in_fork.bend: https://jend.leeeet.dev/read.txt?path=bend-lint-rules@0.2.0.0/performance/deep_call_in_fork.bend&start_line=64&end_line=73 import Base import bend-lint-api@0.2.0.0/linter/lint.bend as Lint # Whether a definition with the nodes `k` counts, if it calls itself outside a tail position (`found`): each does if # `forking`, else one without a parallel let. def deep.if(found: Bool, forking: Bool, k: List<&2, Lint.Node>) -> Bool: match found forking: case False{} _: False{} case True{} True{}: True{} case True{} False{}: Bool.not(Lint.forks(k, False{})) Uses (5): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool.not https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=bend-lint-api@0.2.0.0/linter/lint.bend&name=Node https://jend.leeeet.dev/definition.txt?path=bend-lint-api@0.2.0.0/linter/lint.bend&name=forks