DeepCallInFork.is_value: 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 150-155 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=150&end_line=155 import Base import bend-lint-api@0.2.0.0/linter/lint.bend as Lint # Whether `x`, the node at `at` under `parent`, is a value of a fork, or of a let just before one: not a binder, nor the # rest of the block. def is_value(x: Lint.Node, +parent: Lint.Node, at: U32) -> Bool: match x parent: case Lint.Node{s, n, sp, k, f} Lint.Node{ps, pn, psp, +kids, pf}: leads([parent], False{}, Bool.not(is_pattern(s)) && Bool.not(is_last(kids, at))) Uses (9): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool.and 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=Base/base.bend&name=U32 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-rules@0.2.0.0/performance/deep_call_in_fork.bend&name=is_last https://jend.leeeet.dev/definition.txt?path=bend-lint-rules@0.2.0.0/performance/deep_call_in_fork.bend&name=is_pattern https://jend.leeeet.dev/definition.txt?path=bend-lint-rules@0.2.0.0/performance/deep_call_in_fork.bend&name=leads