def deep.of

bend-lint-rules@0.2.0.0 · performance/deep_call_in_fork.bend:53

import bend-lint-rules@0.2.0.0/performance/deep_call_in_fork.bend as DeepCallInFork
import Base
import bend-lint-api@0.2.0.0/linter/lint.bend as Lint

53# Whether a call of its definition to itself below `path` is outside a tail position.
54def deep.of(recursive: Bool, path: List<&2, Lint.Above>) -> List<&2, Bool>:
55  match recursive:
56    case True{}:
57      [Bool.not(is_tail(path, True{}))]
58    case False{}:
59      []

Uses (5)

Used by (1)